/external/clang/test/SemaCXX/ |
D | enable_if.cpp | 11 …X(bool b) __attribute__((enable_if(b, "chosen when 'b' is true"))); // expected-note{{candidate d… 13 void f(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); 14 …void f(int n) __attribute__((enable_if(n == 1, "chosen when 'n' is one"))); // expected-note{{mem… 16 …void g(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-note{{ca… 18 …void h(int n, int m = 0) __attribute__((enable_if(m == 0, "chosen when 'm' is zero"))); // expect… 20 …static void s(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-n… 22 …void conflict(int n) __attribute__((enable_if(n+n == 10, "chosen when 'n' is five"))); // expecte… 23 …void conflict(int n) __attribute__((enable_if(n*2 == 10, "chosen when 'n' is five"))); // expecte… 25 …void hidden_by_argument_conversion(Incomplete n, int m = 0) __attribute__((enable_if(m == 10, "cho… 26 …Incomplete hidden_by_incomplete_return_value(int n = 0) __attribute__((enable_if(n == 10, "chosen … [all …]
|
D | unaddressable-functions.cpp | 5 void check(int *) __attribute__((enable_if(false, ""))); 6 void check(double *) __attribute__((enable_if(true, ""))); 8 static void checkStatic(int *) __attribute__((enable_if(false, ""))); 9 static void checkStatic(double *) __attribute__((enable_if(true, ""))); 18 void check(int *) __attribute__((enable_if(false, ""))); 19 void check(double *) __attribute__((enable_if(true, ""))); 21 static void checkStatic(int *) __attribute__((enable_if(false, ""))); 22 static void checkStatic(double *) __attribute__((enable_if(true, ""))); 33 void foo(int) __attribute__((enable_if(false, ""))); 39 void foo() __attribute__((enable_if(false, ""))); [all …]
|
/external/clang/test/Sema/ |
D | enable_if.c | 10 int open(const char *pathname, int flags) __attribute__((enable_if(!(flags & O_CREAT), "must specif… 31 __attribute__((enable_if(__builtin_object_size(s, 0) != -1, in strnlen() 39 __attribute__((enable_if(__builtin_object_size(s, 0) != -1, 41 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0), 47 __attribute__((enable_if(__builtin_object_size(s, 0) != -1, 49 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0), 71 …__attribute__((enable_if(c <= -1 || c > 255, "'c' must have the value of an unsigned char or EOF")… 104 __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))) void f1(int n); // expected-error{{us… 106 int n __attribute__((enable_if(1, "always chosen"))); // expected-warning{{'enable_if' attribute on… 108 void f(int n) __attribute__((enable_if("chosen when 'n' is zero", n == 0))); // expected-error{{'e… [all …]
|
D | enable_if-ext.c | 11 __attribute__ (( enable_if(1, "") )) 23 __attribute__ (( enable_if(0, "") )) 37 __attribute__ (( enable_if(1, "") )) 43 __attribute__ (( enable_if(0, "") ))
|
D | overloadable.c | 92 void foo(char *c) __attribute__((overloadable, enable_if(c, "nope.jpg"))); in conversions() 115 void disabled(void *c) __attribute__((overloadable, enable_if(0, ""))); in fn_type_conversions() 116 void disabled(int *c) __attribute__((overloadable, enable_if(c, ""))); in fn_type_conversions() 117 void disabled(char *c) __attribute__((overloadable, enable_if(1, "The function name lies."))); in fn_type_conversions()
|
/external/clang/test/SemaTemplate/ |
D | overload-candidates.cpp | 47 template<bool, typename = void> struct enable_if {}; struct 48 template<typename T> struct enable_if<true, T> { typedef T type; }; struct 50 template<typename T> typename boost::enable_if<sizeof(T) == 4, int>::type if_size_4(); // expected-… argument 54 template<typename Cond, typename T = void> struct enable_if : boost::enable_if<Cond::value, T> {}; struct 58 template<typename T> typename llvm::enable_if<is_int<T> >::type if_int(); // expected-note{{candida… 64 …typename boost::enable_if<sizeof(T) == 4, int>::type f(); // expected-error{{no type named 'type' … 86 template<bool, typename = void> struct enable_if {}; struct 87 template<typename T> struct enable_if<true, T> { typedef T type; }; struct 99 typename Requires = typename std::enable_if<a_trait<T>::value>::type> argument 113 struct a_pony : std::enable_if<some_trait<T>::value> {}; [all …]
|
/external/clang/test/CodeGen/ |
D | enable_if.c | 6 void foo(int m) __attribute__((overloadable, enable_if(m > 0, ""))); 30 void bar(int m) __attribute__((overloadable, enable_if(m > 0, ""))); 31 void bar(int m) __attribute__((overloadable, enable_if(1, ""))); 53 void baz(int m) __attribute__((overloadable, enable_if(1, ""))); 69 void qux(int m) __attribute__((overloadable, enable_if(1, ""), 70 enable_if(TRUEFACTS, ""))); 71 void qux(int m) __attribute__((overloadable, enable_if(1, ""))); 89 int foo(char *i) __attribute__((enable_if(1, ""), overloadable)); in test5() 91 __attribute__((enable_if(1, ""), overloadable)); in test5()
|
D | overloadable.c | 36 void addrof_many(int *a) __attribute__((overloadable, enable_if(0, ""))); 40 void addrof_single(int *a) __attribute__((overloadable, enable_if(0, ""))); 41 void addrof_single(char *a) __attribute__((overloadable, enable_if(0, "")));
|
/external/clang/test/CodeGenCXX/ |
D | enable_if.cpp | 6 T test5(T) __attribute__((enable_if(1, "better than non-template"))); 14 void test1(int i) __attribute__((enable_if(i == 1, ""))) {} in test1() 18 void test2(int i) __attribute__((enable_if(&ext != 0, ""))) {} in test2() 21 void test3(int i, int j) __attribute__((enable_if(i == 1, ""), enable_if(j == 2, ""))) {} in test3() 26 …virtual void f(int i, int j) __attribute__((enable_if(i == 1, ""))) __attribute__((enable_if(j == …
|
D | mangle-exprs.cpp | 36 struct enable_if { typedef T type; }; struct 39 struct enable_if< false, T > {}; struct 44 void implicit(typename enable_if< O <= 4 >::type* = 0) { in implicit() 48 void cstyle(typename enable_if< O <= (unsigned)4 >::type* = 0) { in cstyle() 52 void functional(typename enable_if< O <= unsigned(4) >::type* = 0) { in functional() 56 void static_(typename enable_if< O <= static_cast<unsigned>(4) >::type* = 0) { in static_() 60 void reinterpret_(typename enable_if<O <= sizeof(reinterpret_cast<T *>(0))>::type * = 0) { in reinterpret_() 64 void const_(typename enable_if<0 <= sizeof(const_cast<T *>(p))>::type * = 0) { in const_() 68 void dynamic_(typename enable_if<0 <= sizeof(dynamic_cast<T *>(p))>::type * = 0) { in dynamic_()
|
/external/libcxx/include/ |
D | math.h | 330 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type 340 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type 364 typename std::enable_if<std::is_arithmetic<_A1>::value, int>::type 374 typename std::enable_if<std::is_arithmetic<_A1>::value, int>::type 398 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type 422 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type 446 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type 470 typename std::enable_if<std::is_arithmetic<_A1>::value, bool>::type 494 typename std::enable_if 524 typename std::enable_if [all …]
|
D | valarray | 920 typename enable_if 929 typename enable_if 938 typename enable_if 947 typename enable_if 956 typename enable_if 965 typename enable_if 974 typename enable_if 983 typename enable_if 992 typename enable_if 1001 typename enable_if [all …]
|
/external/v8/src/base/ |
D | safe_math_impl.h | 43 struct enable_if {}; 46 struct enable_if<true, T> { typedef T type; }; 97 typedef typename enable_if< 104 typedef typename enable_if< 111 typedef typename enable_if< 120 static const typename enable_if<std::numeric_limits<Integer>::is_integer, 144 typename enable_if<std::numeric_limits<T>::is_integer, T>::type 167 typename enable_if<std::numeric_limits<T>::is_integer, T>::type 194 typename enable_if< 206 typename enable_if<std::numeric_limits<T>::is_integer && [all …]
|
/external/libchrome/base/numerics/ |
D | safe_math_impl.h | 68 typedef typename std::enable_if< 75 typedef typename std::enable_if< 82 typedef typename std::enable_if< 91 static const typename std::enable_if<std::numeric_limits<Integer>::is_integer, 135 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type 159 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type 187 typename std::enable_if<std::numeric_limits<T>::is_integer && 199 typename std::enable_if<std::numeric_limits<T>::is_integer && 230 typename std::enable_if<std::numeric_limits<T>::is_integer && 246 typename std::enable_if<std::numeric_limits<T>::is_integer, [all …]
|
/external/libcxx/test/support/ |
D | archetypes.hpp | 54 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 58 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 62 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 66 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 70 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 75 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 129 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 131 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> 133 template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true> 135 template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true> [all …]
|
/external/llvm/include/llvm/ADT/ |
D | BitmaskEnum.h | 75 E, typename std::enable_if<sizeof(E::LLVM_BITMASK_LARGEST_ENUMERATOR) >= 99 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 105 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 111 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 117 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 126 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 133 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type> 140 typename = typename std::enable_if<is_bitmask_enum<E>::value>::type>
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | sizeofpack.cpp | 75 struct enable_if { }; struct 77 template<class T> struct enable_if<true, T> { struct 84 void cxx_throw(typename enable_if<(sizeof...(Args) > 0), const char *>::type fmt, Args&&... args) { in cxx_throw() 152 struct enable_if struct 155 struct enable_if<true,_Tp> struct 172 typename enable_if<is_array_of<sizeof...(Args), size_t, Args...>::value,
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | serialization_util.h | 36 typename std::enable_if<HasIsNullMethod<Traits>::value>::type* = nullptr> 44 typename std::enable_if<!HasIsNullMethod<Traits>::value>::type* = nullptr> 63 typename std::enable_if<HasSetToNullMethod<Traits>::value>::type* = nullptr> 71 typename std::enable_if<!HasSetToNullMethod<Traits>::value>::type* = 163 typename std::enable_if< 173 typename std::enable_if< 194 typename std::enable_if< 204 typename std::enable_if<
|
D | serialization_forward.h | 42 typename std::enable_if< 54 typename std::enable_if< 66 typename std::enable_if< 77 typename std::enable_if< 89 typename std::enable_if< 106 typename std::enable_if<
|
/external/libcxx/test/std/numerics/complex.number/cmplx.over/ |
D | pow.pass.cpp | 32 promote(T, typename std::enable_if<std::is_integral<T>::value>::type* = 0); 67 test(typename std::enable_if<std::is_integral<T>::value>::type* = 0, typename std::enable_if<!std::… in test() 75 test(typename std::enable_if<!std::is_integral<T>::value>::type* = 0, typename std::enable_if<!std:… in test()
|
D | proj.pass.cpp | 26 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0) in test() 34 test(T x, typename std::enable_if<std::is_floating_point<T>::value>::type* = 0) in test() 42 test(T x, typename std::enable_if<!std::is_integral<T>::value && in test()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_array.h | 61 typename std::enable_if<!CanInternStrings<T>::value, T*>::type AddNew( in AddNew() 67 typename std::enable_if<CanInternStrings<T>::value, T*>::type AddNew( in AddNew() 73 typename std::enable_if<!CanInternStrings<T>::value, T*>::type SetNewAt( in SetNewAt() 80 typename std::enable_if<CanInternStrings<T>::value, T*>::type SetNewAt( in SetNewAt() 87 typename std::enable_if<!CanInternStrings<T>::value, T*>::type InsertNewAt( in InsertNewAt() 94 typename std::enable_if<CanInternStrings<T>::value, T*>::type InsertNewAt( in InsertNewAt()
|
/external/pdfium/third_party/base/numerics/ |
D | safe_math_impl.h | 79 typename std::enable_if<std::is_integral<T>::value && 130 typename std::enable_if<std::is_integral<T>::value && 183 typename std::enable_if<std::is_integral<T>::value && 247 typename std::enable_if<std::is_integral<T>::value && 281 typename std::enable_if<std::is_integral<T>::value && 304 typename std::enable_if<std::is_integral<T>::value && 333 typename std::enable_if<std::is_integral<T>::value && 356 typename std::enable_if<std::is_integral<T>::value && 375 typename std::enable_if<std::is_integral<T>::value && 394 typename std::enable_if<std::is_integral<T>::value && [all …]
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/ |
D | sfinae-1.cpp | 27 struct enable_if { struct 32 struct enable_if<false, T> { }; struct 35 typename enable_if<sizeof(T) == 17>::type
|
/external/llvm/include/llvm/Support/ |
D | ErrorOr.h | 85 typename std::enable_if<std::is_error_code_enum<E>::value || 98 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type 111 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * = 119 typename std::enable_if< 131 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * = 141 typename std::enable_if<!std::is_convertible<OtherT, T>::value>::type * = 279 typename std::enable_if<std::is_error_code_enum<E>::value ||
|