Lines Matching refs:annotate
32 [[clang::annotate("test", fail_on_int(v))]] void t() {}
34 [[clang::annotate("test", (typename enable_if<!is_same<long, T>::value, int>::type)v)]] void t1() {}
45 [[clang::annotate("test", ((void)T{}, 9))]] void t() {}
56 [[clang::annotate("test", "arg")]] void t3() {}
66 int v __attribute__((annotate("v_ann_0", str(), 90, V, g_i))) __attribute__((annotate("v_ann_1", V1)));
67 // expected-error@-1 {{'annotate' attribute requires parameter 4 to be a constant expression}}
69 [[clang::annotate("qdwqwd", cf, cb)]] void t() {}
70 [[clang::annotate("qdwqwd", f, cb)]] void t1() {}
71 // expected-error@-1 {{'annotate' attribute requires parameter 1 to be a constant expression}}
73 [[clang::annotate("jui", b, cf)]] void t2() {}
74 // expected-error@-1 {{'annotate' attribute requires parameter 1 to be a constant expression}}
76 [[clang::annotate("jui", ((void)b, 0), cf)]] [[clang::annotate("jui", &b, cf, &foo::t2, str())]] void t3() {}
89 [[clang::annotate("test", I)]] int v = 0; // expected-note {{declared here}}
90 [[clang::annotate("test", v)]] int v2 = 0;
91 // expected-error@-1 {{'annotate' attribute requires parameter 1 to be a constant expression}}
93 [[clang::annotate("test", rtyui)]] int v3 = 0;
106 [[clang::annotate("vlas are awful", sizeof(vla))]] int i = 0; // reject, the sizeof is not unevaluated
107 // expected-error@-1 {{'annotate' attribute requires parameter 1 to be a constant expression}}
109 [[clang::annotate("_Generic selection expression should be fine", _Generic(n, int : 0, default : 1))]]
113 [[clang::annotate("function designators?", designator)]] int k = 0; // Should work?
116 [[clang::annotate("function designators?", self)]] int k = 0;
128 [[clang::annotate("", foldable_but_invalid())]] void f1() {}
129 // expected-error@-1 {{'annotate' attribute requires parameter 1 to be a constant expression}}
131 [[clang::annotate()]] void f2() {}
132 // expected-error@-1 {{'annotate' attribute takes at least 1 argument}}
134 template <typename T> [[clang::annotate()]] void f2() {}
135 // expected-error@-1 {{'annotate' attribute takes at least 1 argument}}