| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/abseil/ |
| H A D | upgrade-duration-conversions.cpp | 12 ConvertibleTo<T> operator+(ConvertibleTo<T>, ConvertibleTo<T>); 15 ConvertibleTo<T> operator*(ConvertibleTo<T>, ConvertibleTo<T>); 19 d *= ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive() 22 d /= ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive() 25 d = ConvertibleTo<int64_t>() * d; in arithmeticOperatorBasicPositive() 28 d = d * ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive() 31 d = d / ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive() 49 ConvertibleTo<int64_t> c; in arithmeticOperatorBasicPositive() 119 d *= 1 + ConvertibleTo<int>(); in arithmeticOperatorBasicNegative() 120 d /= 1 + ConvertibleTo<int>(); in arithmeticOperatorBasicNegative() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/counted.iterator/ |
| H A D | ctor.conv.pass.cpp | 21 class ConvertibleTo class 34 ConvertibleTo() = default; 35 explicit constexpr ConvertibleTo(int *it) : it_(it) {} in ConvertibleTo() function in ConvertibleTo 39 constexpr ConvertibleTo& operator++() {++it_; return *this;} in operator ++() 40 constexpr ConvertibleTo operator++(int) in operator ++() 41 {ConvertibleTo tmp(*this); ++(*this); return tmp;} in operator ++() 56 std::counted_iterator iter1(ConvertibleTo<forward_iterator<int*>>{buffer}, 8); in test() 62 const std::counted_iterator iter1(ConvertibleTo<forward_iterator<int*>>{buffer}, 8); in test()
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | objc-container-subscripting.mm | 48 struct ConvertibleTo { struct 57 template<typename T> ConvertibleTo<T> makeConvertible(); argument 60 ConvertibleTo<id> x; 61 ConvertibleTo<id> get(); 65 ConvertibleTo<id> toId, 66 ConvertibleTo<int (^)(int)> toBlock, 67 ConvertibleTo<int> toInt, 81 id test_dict_convertibility(ConvertibleTo<NSMutableDictionary*> toDict, 82 ConvertibleTo<id> toId, 83 ConvertibleTo<int (^)(int)> toBlock, [all …]
|
| H A D | literals.mm | 57 struct ConvertibleTo { struct 72 template<typename T> ConvertibleTo<T> makeConvertible(); argument 75 ConvertibleTo<id> x; 76 ConvertibleTo<id> get(); 85 void test_convertibility(ConvertibleTo<NSArray*> toArray, 86 ConvertibleTo<id> toId, 87 ConvertibleTo<int (^)(int)> toBlock, 88 ConvertibleTo<int> toInt, 172 pair<id, ConvertibleTo<id>>); 175 pair<id, ConvertibleTo<id>>); [all …]
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | poisoned_hash_helper.h | 109 struct ConvertibleTo { struct 161 static_assert(can_hash<Hash, ConvertibleTo<Key>&>(), ""); in test_hash_enabled() 162 static_assert(can_hash<Hash, ConvertibleTo<Key> const&>(), ""); in test_hash_enabled() 163 static_assert(can_hash<Hash, ConvertibleTo<Key>&&>(), ""); in test_hash_enabled() 164 static_assert(can_hash<Hash, ConvertibleTo<Key> const&&>(), ""); in test_hash_enabled() 200 static_assert(!can_hash<Hash, ConvertibleTo<Key>&>(), ""); in test_hash_disabled() 201 static_assert(!can_hash<Hash, ConvertibleTo<Key> const&>(), ""); in test_hash_disabled() 202 static_assert(!can_hash<Hash, ConvertibleTo<Key>&&>(), ""); in test_hash_disabled() 203 static_assert(!can_hash<Hash, ConvertibleTo<Key> const&&>(), ""); in test_hash_disabled()
|
| /llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.comparison/ |
| H A D | equal.pass.cpp | 26 struct ConvertibleTo { struct 28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() function 54 assert((ConvertibleTo<SV>(v[i]) == v[j]) == expected); in test() 55 assert((v[i] == ConvertibleTo<SV>(v[j])) == expected); in test()
|
| H A D | greater_equal.pass.cpp | 26 struct ConvertibleTo { struct 28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() function 54 assert((ConvertibleTo<SV>(v[i]) >= v[j]) == expected); in test() 55 assert((v[i] >= ConvertibleTo<SV>(v[j])) == expected); in test()
|
| H A D | less.pass.cpp | 26 struct ConvertibleTo { struct 28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() function 54 assert((ConvertibleTo<SV>(v[i]) < v[j]) == expected); in test() 55 assert((v[i] < ConvertibleTo<SV>(v[j])) == expected); in test()
|
| H A D | less_equal.pass.cpp | 26 struct ConvertibleTo { struct 28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() function 54 assert((ConvertibleTo<SV>(v[i]) <= v[j]) == expected); in test() 55 assert((v[i] <= ConvertibleTo<SV>(v[j])) == expected); in test()
|
| H A D | not_equal.pass.cpp | 26 struct ConvertibleTo { struct 28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() function 54 assert((ConvertibleTo<SV>(v[i]) != v[j]) == expected); in test() 55 assert((v[i] != ConvertibleTo<SV>(v[j])) == expected); in test()
|
| H A D | greater.pass.cpp | 26 struct ConvertibleTo { struct 28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() function 54 assert((ConvertibleTo<SV>(v[i]) > v[j]) == expected); in test() 55 assert((v[i] > ConvertibleTo<SV>(v[j])) == expected); in test()
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/custom/ |
| H A D | raw-ostream.h | 64 template <typename T> struct ConvertibleTo { operator T(); }; struct 67 << ConvertibleTo<const T &>()))> {
|
| /llvm-project-15.0.7/libcxx/docs/Status/ |
| H A D | Cxx20Issues.csv | 199 "`3194 <https://wg21.link/LWG3194>`__","``ConvertibleTo``\ prose does not match code","Prague","|C…
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Inclusions/ |
| H A D | StdSymbolMap.inc | 17 SYMBOL(ConvertibleTo, std::, <concepts>)
|