Home
last modified time | relevance | path

Searched refs:ConvertibleTo (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/abseil/
H A Dupgrade-duration-conversions.cpp12 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 Dctor.conv.pass.cpp21 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 Dobjc-container-subscripting.mm48 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 Dliterals.mm57 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 Dpoisoned_hash_helper.h109 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 Dequal.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() argument
54 assert((ConvertibleTo<SV>(v[i]) == v[j]) == expected); in test()
55 assert((v[i] == ConvertibleTo<SV>(v[j])) == expected); in test()
H A Dgreater_equal.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() argument
54 assert((ConvertibleTo<SV>(v[i]) >= v[j]) == expected); in test()
55 assert((v[i] >= ConvertibleTo<SV>(v[j])) == expected); in test()
H A Dless.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() argument
54 assert((ConvertibleTo<SV>(v[i]) < v[j]) == expected); in test()
55 assert((v[i] < ConvertibleTo<SV>(v[j])) == expected); in test()
H A Dless_equal.pass.cpp26 struct ConvertibleTo { struct
28 TEST_CONSTEXPR explicit ConvertibleTo(T t) : t_(t) {} in ConvertibleTo() argument
54 assert((ConvertibleTo<SV>(v[i]) <= v[j]) == expected); in test()
55 assert((v[i] <= ConvertibleTo<SV>(v[j])) == expected); in test()
H A Dnot_equal.pass.cpp26 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 Dgreater.pass.cpp26 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 Draw-ostream.h64 template <typename T> struct ConvertibleTo { operator T(); }; struct
67 << ConvertibleTo<const T &>()))> {
/llvm-project-15.0.7/libcxx/docs/Status/
H A DCxx20Issues.csv199 "`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 DStdSymbolMap.inc17 SYMBOL(ConvertibleTo, std::, <concepts>)