HomeSort by relevance Sort by last modified time
    Searched full:enable_if (Results 1 - 25 of 1886) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CodeGenCXX/
enable_if.cpp 6 T test5(T) __attribute__((enable_if(1, "better than non-template")));
11 // Test itanium mangling for attribute enable_if
14 void test1(int i) __attribute__((enable_if(i == 1, ""))) {}
18 void test2(int i) __attribute__((enable_if(&ext != 0, ""))) {}
21 void test3(int i, int j) __attribute__((enable_if(i == 1, ""), enable_if(j == 2, ""))) {}
26 virtual void f(int i, int j) __attribute__((enable_if(i == 1, ""))) __attribute__((enable_if(j == 2, "")));
  /external/clang/test/Sema/
enable_if-ext.c 11 __attribute__ (( enable_if(1, "") ))
13 // expected-warning@-2 {{'enable_if' is a clang extension}}
19 // expected-warning@-2 {{'enable_if' is a clang extension}}
23 __attribute__ (( enable_if(0, "") ))
25 // expected-warning@-2 {{'enable_if' is a clang extension}}
31 // expected-warning@-2 {{'enable_if' is a clang extension}}
37 __attribute__ (( enable_if(1, "") ))
43 __attribute__ (( enable_if(0, "") ))
enable_if.c 10 int open(const char *pathname, int flags) __attribute__((enable_if(!(flags & O_CREAT), "must specify mode when using O_CREAT"))) __attribute__((overloadable)); // expected-note{{candidate disabled: must specify mode when using O_CREAT}}
31 __attribute__((enable_if(__builtin_object_size(s, 0) != -1,
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{{use of undeclared identifier 'n'}}
106 int n __attribute__((enable_if(1, "always chosen"))); // expected-warning{{'enable_if' attribute only applies to functions}
    [all...]
  /external/clang/test/SemaCXX/
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...]
enable_if.cpp 11 X(bool b) __attribute__((enable_if(b, "chosen when 'b' is true"))); // expected-note{{candidate disabled: chosen when 'b' is true}}
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{{member declaration nearly matches}} expected-note 2{{candidate disabled: chosen when 'n' is one}}
16 void g(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-note{{candidate disabled: chosen when 'n' is zero}}
18 void h(int n, int m = 0) __attribute__((enable_if(m == 0, "chosen when 'm' is zero"))); // expected-note{{candidate disabled: chosen when 'm' is zero}}
20 static void s(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-note2{{candidate disabled: chosen when 'n' is zero}}
22 void conflict(int n) __attribute__((enable_if(n+n == 10, "chosen when 'n' is five"))); // expected-note{{candidate function}}
23 void conflict(int n) __attribute__((enable_if(n*2 == 10, "chosen when 'n' is five"))); // expected-note{{candidate function}}
25 void hidden_by_argument_conversion(Incomplete n, int m = 0) __attribute__((enable_if(m == 10, "chosen when 'm' is ten")));
26 Incomplete hidden_by_incomplete_return_value(int n = 0) __attribute__((enable_if(n == 10, "chosen when 'n' is ten"))); // expected-note{{'hidden_by_incomplete_return_value' declar (…)
    [all...]
  /external/clang/test/SemaTemplate/
overload-candidates.cpp 47 template<bool, typename = void> struct enable_if {}; struct in namespace:boost
48 template<typename T> struct enable_if<true, T> { typedef T type; }; struct in namespace:boost
50 template<typename T> typename boost::enable_if<sizeof(T) == 4, int>::type if_size_4(); // expected-note{{candidate template ignored: disabled by 'enable_if' [with T = char]}}
54 template<typename Cond, typename T = void> struct enable_if : boost::enable_if<Cond::value, T> {}; struct in namespace:llvm
58 template<typename T> typename llvm::enable_if<is_int<T> >::type if_int(); // expected-note{{candidate template ignored: disabled by 'enable_if' [with T = char]}}
64 typename boost::enable_if<sizeof(T) == 4, int>::type f(); // expected-error{{no type named 'type' in 'boost::enable_if<false, int>'; 'enable_if' cannot be used to disable this declaration}
86 template<bool, typename = void> struct enable_if {}; struct in namespace:std
87 template<typename T> struct enable_if<true, T> { typedef T type; }; struct in namespace:std
    [all...]
  /external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/
sfinae-1.cpp 27 struct enable_if { struct in namespace:instantiation_order1
32 struct enable_if<false, T> { }; struct in namespace:instantiation_order1
35 typename enable_if<sizeof(T) == 17>::type
  /external/clang/test/CodeGen/
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, "")));
84 // There was a bug where, when enable_if was present, overload resolution
89 int foo(char *i) __attribute__((enable_if(1, ""), overloadable));
91 __attribute__((enable_if(1, ""), overloadable))
    [all...]
  /external/v8/src/base/
safe_math_impl.h 43 struct enable_if {}; struct in namespace:v8::base::internal
46 struct enable_if<true, T> { typedef T type; }; struct in namespace:v8::base::internal
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,
140 // TODO(jschuh): Break this code out from the enable_if pattern and find a clean
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<
    [all...]
  /external/libcxx/include/
math.h 336 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
344 typename std::enable_if<
351 typename std::enable_if<
360 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
368 typename std::enable_if<
375 typename std::enable_if<
398 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
406 typename std::enable_if<std::is_integral<_A1>::value, int>::type
414 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
422 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4393122/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4479392/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4579689/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4630689/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4639204/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4691093/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4393122/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4479392/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4579689/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4630689/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4639204/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4691093/include/c++/v1/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/include/
math.h 328 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
336 typename std::enable_if<
343 typename std::enable_if<
352 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
360 typename std::enable_if<
367 typename std::enable_if<
390 typename std::enable_if<std::is_floating_point<_A1>::value, int>::type
398 typename std::enable_if<std::is_integral<_A1>::value, int>::type
406 typename std::enable_if<std::is_floating_point<_A1>::value, bool>::type
414 typename std::enable_if<std::is_integral<_A1>::value, int>::typ
    [all...]
  /external/clang/test/CXX/temp/temp.decls/temp.variadic/
sizeofpack.cpp 75 struct enable_if { }; struct in namespace:pr13272
77 template<class T> struct enable_if<true, T> { struct in namespace:pr13272
84 void cxx_throw(typename enable_if<(sizeof...(Args) > 0), const char *>::type fmt, Args&&... args) {
152 struct enable_if struct in namespace:pr15112
155 struct enable_if<true,_Tp> struct in namespace:pr15112
172 typename enable_if<is_array_of<sizeof...(Args), size_t, Args...>::value,
  /external/libmojo/mojo/public/cpp/bindings/lib/
serialization_forward.h 43 typename std::enable_if<
55 typename std::enable_if<
67 typename std::enable_if<
78 typename std::enable_if<
90 typename std::enable_if<
107 typename std::enable_if<

Completed in 564 milliseconds

1 2 3 4 5 6 7 8 91011>>