Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dabseil-upgrade-duration-conversions.cpp8 template <typename T> struct ConvertibleTo { struct
13 ConvertibleTo<T> operator+(ConvertibleTo<T>, ConvertibleTo<T>);
16 ConvertibleTo<T> operator*(ConvertibleTo<T>, ConvertibleTo<T>);
20 d *= ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
23 d /= ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
26 d = ConvertibleTo<int64_t>() * d; in arithmeticOperatorBasicPositive()
29 d = d * ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
32 d = d / ConvertibleTo<int64_t>(); in arithmeticOperatorBasicPositive()
35 d.operator*=(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
38 d.operator/=(ConvertibleTo<int64_t>()); in arithmeticOperatorBasicPositive()
[all …]
/external/llvm-project/clang/test/SemaObjCXX/
Dobjc-container-subscripting.mm48 struct ConvertibleTo { struct
57 template<typename T> ConvertibleTo<T> makeConvertible(); argument
60 ConvertibleTo<id> x;
61 ConvertibleTo<id> get();
64 NSMutableArray *test_array_convertibility(ConvertibleTo<NSMutableArray*> toArray,
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,
[all …]
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,
94 …toInt // expected-error{{collection element of type 'ConvertibleTo<int>' is not an Objective-C obj…
100 …makeConvertible<id>, // expected-error{{collection element of type 'ConvertibleTo<id> ()' is not a…
[all …]
/external/clang/test/SemaObjCXX/
Dobjc-container-subscripting.mm48 struct ConvertibleTo { struct
57 template<typename T> ConvertibleTo<T> makeConvertible(); argument
60 ConvertibleTo<id> x;
61 ConvertibleTo<id> get();
64 NSMutableArray *test_array_convertibility(ConvertibleTo<NSMutableArray*> toArray,
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,
[all …]
Dliterals.mm54 struct ConvertibleTo { struct
69 template<typename T> ConvertibleTo<T> makeConvertible(); argument
72 ConvertibleTo<id> x;
73 ConvertibleTo<id> get();
82 void test_convertibility(ConvertibleTo<NSArray*> toArray,
83 ConvertibleTo<id> toId,
84 ConvertibleTo<int (^)(int)> toBlock,
85 ConvertibleTo<int> toInt,
91 …toInt // expected-error{{collection element of type 'ConvertibleTo<int>' is not an Objective-C obj…
97 …makeConvertible<id>, // expected-error{{collection element of type 'ConvertibleTo<id> ()' is not a…
[all …]
/external/libcxx/test/support/
Dpoisoned_hash_helper.hpp113 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()
/external/llvm-project/libcxx/test/support/
Dpoisoned_hash_helper.h112 struct ConvertibleTo { struct
160 static_assert(can_hash<Hash(ConvertibleTo<Key>&)>(), ""); in test_hash_enabled()
161 static_assert(can_hash<Hash(ConvertibleTo<Key> const&)>(), ""); in test_hash_enabled()
162 static_assert(can_hash<Hash(ConvertibleTo<Key> &&)>(), ""); in test_hash_enabled()
163 static_assert(can_hash<Hash(ConvertibleTo<Key> const&&)>(), ""); in test_hash_enabled()
199 static_assert(!can_hash<Hash(ConvertibleTo<Key>&)>(), ""); in test_hash_disabled()
200 static_assert(!can_hash<Hash(ConvertibleTo<Key> const&)>(), ""); in test_hash_disabled()
201 static_assert(!can_hash<Hash(ConvertibleTo<Key> &&)>(), ""); in test_hash_disabled()
202 static_assert(!can_hash<Hash(ConvertibleTo<Key> const&&)>(), ""); in test_hash_disabled()
/external/llvm-project/llvm/utils/unittest/googletest/include/gtest/internal/custom/
Draw-ostream.h64 template <typename T> struct ConvertibleTo { operator T(); }; struct
67 << ConvertibleTo<const T &>()))> {
/external/llvm-project/libcxx/docs/
DCxx2aStatusIssuesStatus.csv198 "`3194 <https://wg21.link/LWG3194>`__","``ConvertibleTo``\ prose does not match code","Prague","",…
/external/llvm-project/clang-tools-extra/clangd/
DStdSymbolMap.inc16 SYMBOL(ConvertibleTo, std::, <concepts>)