• Home
  • Raw
  • Download

Lines Matching refs:enable_if

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 …
28 operator long() __attribute__((enable_if(true, "chosen on your platform")));
29 operator int() __attribute__((enable_if(false, "chosen on other platform")));
31 …operator fp() __attribute__((enable_if(false, "never enabled"))) { return surrogate; } // expecte… in operator fp()
34 void X::f(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))) // expected-note{{m… in f()
38 void X::f(int n) __attribute__((enable_if(n == 2, "chosen when 'n' is two"))) // expected-error{{o… in f()
46 void deprec1(int i) __attribute__((enable_if(old() == 0, "chosen when old() is zero"))); // expect…
47 void deprec2(int i) __attribute__((enable_if(old() == 0, "chosen when old() is zero"))); // expect…
58 void default_argument(int n, int m = 0) __attribute__((enable_if(m == 0, "chosen when 'm' is zero")…
59 void default_argument_promotion(int n, int m = Int(0)) __attribute__((enable_if(m == 0, "chosen whe…
62 template<typename T> void typedep(T t) __attribute__((enable_if(t, ""))); // expected-note{{candid…
63 template<int N> void valuedep() __attribute__((enable_if(N == 1, "")));
68 template<int N> void valuedep() __attribute__((enable_if(N == not_constexpr(), "")));
70 template <typename T> void instantiationdep() __attribute__((enable_if(sizeof(sizeof(T)) != 0, ""))…
115 void f() __attribute__((enable_if(T::expr == 0, ""))) {} in f()
119 int fn3(bool b) __attribute__((enable_if(b, ""))); // FIXME: This test should net 0 error messages.
126 …T h(int n, int m = 0) __attribute__((enable_if(m == 0, "chosen when 'm' is zero"))); // expected-…
140 void local_function() __attribute__((enable_if(::h(T()), ""))); in outer()
149 int fn1(const Integer &) __attribute__((enable_if(true, "")));
155 …int fn2(const Integer &) __attribute__((enable_if(false, ""))); // expected-note{{candidate disab…
161 …int fn3(bool b) __attribute__((enable_if(b, ""))); // FIXME: This test should net 0 error messages.
168 int ovlFoo(int m) __attribute__((enable_if(m > 0, "")));
181 int ovlBar(int) __attribute__((enable_if(true, "")));
182 int ovlBar(int m) __attribute__((enable_if(false, "")));
191 int ovlConflict(int m) __attribute__((enable_if(true, "")));
192 int ovlConflict(int m) __attribute__((enable_if(1, "")));
202 T templated(T m) __attribute__((enable_if(true, ""))) { return T(); } in templated()
204 T templated(T m) __attribute__((enable_if(false, ""))) { return T(); } in templated()
214 T templatedBar(T m) __attribute__((enable_if(m > 0, ""))) { return T(); } in templatedBar()
224 T templatedConflict(T m) __attribute__((enable_if(false, ""))) { return T(); } in templatedConflict()
226 T templatedConflict(T m) __attribute__((enable_if(true, ""))) { return T(); } in templatedConflict()
228 T templatedConflict(T m) __attribute__((enable_if(1, ""))) { return T(); } in templatedConflict()
237 int ovlNoCandidate(int m) __attribute__((enable_if(false, "")));
238 int ovlNoCandidate(int m) __attribute__((enable_if(0, "")));
247 int noOvlNoCandidate(int m) __attribute__((enable_if(false, "")));
260 void foo(void *c) __attribute__((enable_if(0, "")));
261 void foo(int *c) __attribute__((enable_if(c, "")));
262 void foo(char *c) __attribute__((enable_if(1, "")));
302 void foo(int *c) __attribute__((enable_if(c, ""))); //expected-note 4 {{candidate function}}
303 void foo(char *c) __attribute__((enable_if(c, ""))); //expected-note 4 {{candidate function}}
338 void foo(int *c) __attribute__((enable_if(1, ""))); //expected-note 4 {{candidate function}}
339 void foo(char *c) __attribute__((enable_if(1, ""))); //expected-note 4 {{candidate function}}
354 __attribute__((enable_if(num != 0, "")));
356 __attribute__((enable_if(num != 1, "")));
367 void regularEnableIf(int a) __attribute__((enable_if(a, ""))); // expected-note 3{{declared here}} …
380 void bar(int i) __attribute__((enable_if(i, ""))); // expected-note 2{{declared here}}
393 int error(int N) __attribute__((enable_if(N, ""))); // expected-note{{candidate disabled}}
394 int error(int N) __attribute__((enable_if(!N, ""))); // expected-note{{candidate disabled}}
399 constexpr int noError(int N) __attribute__((enable_if(N, ""))) { return -1; } in noError()
400 constexpr int noError(int N) __attribute__((enable_if(!N, ""))) { return -1; } in noError()
408 template <int N> constexpr int templated() __attribute__((enable_if(N, ""))) { in templated()