Home | History | Annotate | Download | only in Sema

Lines Matching full:__attribute__

8 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}}
9 int open(const char *pathname, int flags, mode_t mode) __attribute__((overloadable)); // expected-note{{candidate function not viable: requires 3 arguments, but 2 were provided}}
23 __attribute__((overloadable))
26 __attribute__((always_inline))
28 __attribute__((overloadable))
29 __attribute__((enable_if(__builtin_object_size(s, 0) != -1,
36 __attribute__((overloadable))
37 __attribute__((enable_if(__builtin_object_size(s, 0) != -1,
39 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0),
44 __attribute__((overloadable))
45 __attribute__((enable_if(__builtin_object_size(s, 0) != -1,
47 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0),
49 __attribute__((unavailable("'maxlen' is larger than the buffer size")));
67 int isdigit(int c) __attribute__((overloadable)); // expected-note{{candidate function}}
68 int isdigit(int c) __attribute__((overloadable)) // expected-note{{candidate function has been explicitly made unavailable}}
69 __attribute__((enable_if(c <= -1 || c > 255, "'c' must have the value of an unsigned char or EOF")))
70 __attribute__((unavailable("'c' must have the value of an unsigned char or EOF")));
81 __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))) void f1(int n); // expected-error{{use of undeclared identifier 'n'}}
83 int n __attribute__((enable_if(1, "always chosen"))); // expected-warning{{'enable_if' attribute only applies to functions}}
85 void f(int n) __attribute__((enable_if("chosen when 'n' is zero", n == 0))); // expected-error{{'enable_if' attribute requires a string}}
87 void f(int n) __attribute__((enable_if())); // expected-error{{'enable_if' attribute requires exactly 2 arguments}}
89 void f(int n) __attribute__((enable_if(unresolvedid, "chosen when 'unresolvedid' is non-zero"))); // expected-error{{use of undeclared identifier 'unresolvedid'}}
92 void f(int n) __attribute__((enable_if(global == 0, "chosen when 'global' is zero"))); // expected-error{{'enable_if' attribute expression never produces a constant expression}} // expected-note{{subexpression not valid in a constant expression}}
95 void return_cst(void) __attribute__((overloadable)) __attribute__((enable_if(cst == 7, "chosen when 'cst' is 7")));