| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | pragma-attribute.cpp | 3 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = function) 9 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any(variable(is_paramete… 12 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = variable(unless(is_param… 15 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any(variable(unless(is_p… 38 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to) // expected-error {{expec… 63 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = hasType(functionType)) /… 110 #pragma clang attribute push (__attribute__((annotate)) // expected-error {{expected ')'}} 123 #pragma clang attribute push (__attribute__((annotate)) foo) // expected-error {{expected ','}} 135 #pragma clang attribute push (__attribute__((annotate("hello"))), apply_to=variable) in statementPragmasAndPragmaExpression() 172 #pragma clang attribute push(__attribute__((annotate, apply_to=function))) // expected-error {{expe… [all …]
|
| H A D | cxx0x-attributes.cpp | 270 …void bor [[clang::annotate("A", "V" ...)]] (); // expected-error {{pack expansion does not co… 271 …void bir [[clang::annotate("B", {1, 2, 3, 4})]] (); // expected-error {{'annotate' attribute requi… 273 …void faz [[clang::annotate("C", (Is + ...))]] (); // expected-warning {{pack fold expression is … 274 void far [[clang::annotate("D", Is...)]] (); 275 void foz [[clang::annotate("E", 1, 2, 3, Is...)]] (); 276 void fiz [[clang::annotate("F", Is..., 1, 2, 3)]] (); 277 void fir [[clang::annotate("G", 1, Is..., 2, 3)]] (); 419 [[clang::annotate("test")]] void annotate1(); 420 [[_Clang::annotate("test")]] void annotate2(); 424 [[__clang__::annotate("test")]] void annotate3(); // expected-warning {{'__clang__' is a predefine…
|
| /llvm-project-15.0.7/clang/unittests/Format/ |
| H A D | TokenAnnotatorTest.cpp | 97 Tokens = annotate("union {\n" in TEST_F() 101 Tokens = annotate("class {\n" in TEST_F() 110 Tokens = annotate("union {\n" in TEST_F() 114 Tokens = annotate("class {\n" in TEST_F() 127 Tokens = annotate("0 + 0"); in TEST_F() 130 Tokens = annotate("x + +0"); in TEST_F() 137 Tokens = annotate("(-0)"); in TEST_F() 140 Tokens = annotate("0, -0"); in TEST_F() 149 Tokens = annotate("x[-1]"); in TEST_F() 203 Tokens = annotate("(-x)"); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | attr-annotate.cpp | 32 [[clang::annotate("test", fail_on_int(v))]] void t() {} in t() 45 [[clang::annotate("test", ((void)T{}, 9))]] void t() {} in t() 56 [[clang::annotate("test", "arg")]] void t3() {} in t3() 66 …int v __attribute__((annotate("v_ann_0", str(), 90, V, g_i))) __attribute__((annotate("v_ann_1", V… 69 [[clang::annotate("qdwqwd", cf, cb)]] void t() {} in t() 70 [[clang::annotate("qdwqwd", f, cb)]] void t1() {} in t1() 73 [[clang::annotate("jui", b, cf)]] void t2() {} in t2() 76 …[[clang::annotate("jui", ((void)b, 0), cf)]] [[clang::annotate("jui", &b, cf, &foo::t2, str())]] v… in t3() 90 [[clang::annotate("test", v)]] int v2 = 0; in f() 93 [[clang::annotate("test", rtyui)]] int v3 = 0; in f() [all …]
|
| H A D | cxx11-attributes-on-using-declaration.cpp | 7 [[clang::annotate("foo")]] using NS::x; // expected-warning{{ISO C++ does not allow an attribute li… 18 [[clang::annotate("A")]] using NS::x [[clang::annotate("Y")]], NS::x [[clang::annotate("Z")]];
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | annotations-global.c | 10 static __attribute((annotate("sfoo_0"))) __attribute((annotate("sfoo_1"))) char sfoo; 11 __attribute((annotate("foo_0"))) __attribute((annotate("foo_1"))) char foo; 13 void __attribute((annotate("ann_a_0"))) __attribute((annotate("ann_a_1"))) __attribute((annotate("a… 14 void __attribute((annotate("ann_a_0"))) __attribute((annotate("ann_a_1"))) a(char *a) { in a() 15 __attribute__((annotate("bar_0"))) __attribute__((annotate("bar_1"))) static char bar; in a() 19 __attribute((address_space(1))) __attribute__((annotate("addrspace1_ann"))) char addrspace1_var;
|
| H A D | annotations-var.c | 17 int foo(int v __attribute__((annotate("param_ann_2"))) __attribute__((annotate("param_ann_3")))); 18 int foo(int v __attribute__((annotate("param_ann_0"))) __attribute__((annotate("param_ann_1")))) { in foo() 33 …int localvar __attribute__((annotate("localvar_ann_0"))) __attribute__((annotate("localvar_ann_1")… in local() 44 int localvar __attribute__((annotate("localvar_after_return"))) = 3; in local_after_return() 52 int undefvar __attribute__((annotate("undefvar_ann_0"))); in undef()
|
| H A D | 2007-06-15-AnnotateAttribute.c | 5 int X __attribute__((annotate("GlobalValAnnotation"))); 8 int foo(int y) __attribute__((annotate("GlobalValAnnotation"))) 11 int foo(int y __attribute__((annotate("LocalValAnnotation")))) { in foo() 12 int x __attribute__((annotate("LocalValAnnotation"))); in foo() 18 static int a __attribute__((annotate("GlobalValAnnotation"))); in main()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | annotate.c | 3 void __attribute__((annotate("foo"))) foo(float *a) { in foo() 4 __attribute__((annotate("bar"))) int x; in foo() 5 [[clang::annotate("bar")]] int x2; in foo() 6 __attribute__((annotate(1))) int y; // expected-error {{'annotate' attribute requires a string}} in foo() 7 [[clang::annotate(1)]] int y2; // expected-error {{'annotate' attribute requires a string}} in foo() 8 __attribute__((annotate("bar", 1))) int z; in foo() 9 [[clang::annotate("bar", 1)]] int z2; in foo() 16 …__attribute__((annotate())) int c; // expected-error {{'annotate' attribute takes at least 1 argum… in foo() 17 …[[clang::annotate()]] int c2; // expected-error {{'annotate' attribute takes at least 1 argum… in foo()
|
| H A D | pragma-attribute.c | 6 #pragma clang attribute push (__attribute__((annotate)), apply_to = function) // expected-warning {… 10 #pragma clang attribute push (__attribute__((annotate)), apply_to = function) // expected-error 4 {… 15 #pragma clang attribute push (__attribute__((annotate())), apply_to = function) // expected-error 2… 19 #pragma clang attribute push (__attribute__((annotate("hello", "world"))), apply_to = function) 41 #pragma clang attribute push (__attribute__((annotate())), apply_to = function) // expected-error{{… 42 #pragma clang attribute (__attribute__((annotate())), apply_to = function) // expected-error{{'anno… 51 #pragma clang attribute (__attribute__((annotate())), apply_to = function) // expected-error 2 {{'a… 55 #pragma clang attribute push (__attribute__((annotate())), apply_to = function) // expected-error{{… 62 #pragma clang attribute (__attribute__((annotate)), apply_to = function) // expected-error{{'#pragm… 68 #pragma clang attribute push (__attribute__((annotate("func"))), apply_to = function) // expected-e…
|
| H A D | pragma-attribute-namespace.c | 7 #pragma clang attribute MyNamespace.push (__attribute__((annotate)), apply_to=function) // expected… 14 #pragma clang attribute MyOtherNamespace.push (__attribute__((annotate)), apply_to=function) // exp… 31 #pragma clang attribute Merp.push (__attribute__((annotate)), apply_to=function) // expected-error{… 32 #pragma clang attribute push (__attribute__((annotate)), apply_to=function) // expected-warning {{u… 37 #pragma clang attribute push (__attribute__((annotate)), apply_to=function) // expected-warning {{u… 38 #pragma clang attribute Merp.push (__attribute__((annotate)), apply_to=function) // expected-error{…
|
| H A D | pragma-attribute-strict-subjects.c | 3 #pragma clang attribute push (__attribute__((annotate("test"))), apply_to = any(function, variable)) 9 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions"))), apply_to = any(va… 15 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions2"))), apply_to = any(f… 20 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions3"))), apply_to = any(v… 25 #pragma clang attribute push (__attribute__((annotate("negatedSubRuleContradictions1"))), apply_to … 30 #pragma clang attribute push (__attribute__((annotate("negatedSubRuleContradictions2"))), apply_to … 148 #pragma clang attribute push (__attribute__((annotate("test"))), apply_to = objc_method) 152 #pragma clang attribute push (__attribute__((annotate("test"))), apply_to = any(objc_interface, obj…
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | annotate-macro-args.m | 2 // RUN: c-index-test -test-annotate-tokens=%S/annotate-macro-args.h:9:1:10:1 %s -include %S/annotat… 3 // RUN: c-index-test -test-annotate-tokens=%S/annotate-macro-args.h:15:1:16:1 %s -include %S/annota… 6 // RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/annotate-macro-args.h -Xclang -deta… 7 // RUN: c-index-test -test-annotate-tokens=%S/annotate-macro-args.h:9:1:10:1 %s -include-pch %t.pch… 8 // RUN: c-index-test -test-annotate-tokens=%S/annotate-macro-args.h:15:1:16:1 %s -include-pch %t.pc…
|
| H A D | complete-with-annotations.cpp | 4 int field __attribute((annotate("one"), annotate("two"), annotate("three"))); 6 public __attribute__((annotate("some annotation"))): 8 int member2 __attribute__((annotate("another annotation")));
|
| H A D | annotate-attribute.cpp | 5 __attribute__((annotate("spiffy_method"))) void aMethod(); 7 public __attribute__((annotate("works"))): 10 private __attribute__((annotate("investigations"))): 20 class __attribute__((annotate("works"))) TemplateTest {}; 23 int templateFunction(T value) __attribute__((annotate("works")));
|
| H A D | annotate-comments-objc.m | 113 // CHECK: annotate-comments-objc.m:23:50: ObjCPropertyDecl=property1_isdoxy1:{{.*}} property1_isdox… 114 // CHECK: annotate-comments-objc.m:24:50: ObjCPropertyDecl=property1_isdoxy2:{{.*}} property1_isdox… 115 // CHECK: annotate-comments-objc.m:25:50: ObjCPropertyDecl=property1_isdoxy3:{{.*}} property1_isdox… 116 // CHECK: annotate-comments-objc.m:26:50: ObjCPropertyDecl=property1_isdoxy4:{{.*}} property1_isdox… 117 // CHECK: annotate-comments-objc.m:29:9: ObjCInstanceMethodDecl=method1_isdoxy1:{{.*}} method1_isdo… 118 // CHECK: annotate-comments-objc.m:30:9: ObjCInstanceMethodDecl=method1_isdoxy2:{{.*}} method1_isdo… 119 // CHECK: annotate-comments-objc.m:31:9: ObjCInstanceMethodDecl=method1_isdoxy3:{{.*}} method1_isdo… 121 // CHECK: annotate-comments-objc.m:43:22: EnumDecl=An_NS_ENUM_isdoxy1:{{.*}} An_NS_ENUM_isdoxy1 IS_… 122 // CHECK: annotate-comments-objc.m:43:22: TypedefDecl=An_NS_ENUM_isdoxy1:{{.*}} An_NS_ENUM_isdoxy1 … 123 // CHECK: annotate-comments-objc.m:43:22: EnumDecl=An_NS_ENUM_isdoxy1:{{.*}} An_NS_ENUM_isdoxy1 IS_… [all …]
|
| H A D | index-attrs.m | 7 -(id)prop __attribute__((annotate("anno"))); 8 -(void)setProp:(id)p __attribute__((annotate("anno"))); 9 @property (assign) id prop __attribute__((annotate("anno"))); 39 // CHECK: <attribute>: attribute(annotate)=anno 40 …K: <getter>: kind: objc-instance-method | name: prop | {{.*}} <attribute>: attribute(annotate)=anno 41 …setter>: kind: objc-instance-method | name: setProp: | {{.*}} <attribute>: attribute(annotate)=anno
|
| H A D | annotate-comments-property-accessor.m | 16 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert… 22 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert… 23 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert… 32 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert… 33 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert… 42 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert… 52 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert… 53 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert…
|
| H A D | annotate-comments-typedef.m | 20 …ocumentation for MyEnum </p>] FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.… 30 …rief"> Documentation for E </p>] FullCommentAsXML=[<Enum file="{{[^"]+}}annotate-comments-typedef.… 31 …f"> Documentation for E </p>] FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.… 38 …ief"> Comment about Foo </p>] FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.… 39 …brief"> Comment about Foo </p>] FullCommentAsXML=[<Class file="{{[^"]+}}annotate-comments-typedef.… 48 …sXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.m" line="[[@LINE-2]]" column="21"><Name>Fo…
|
| H A D | annotate-parameterized-classes.m | 18 // RUN: c-index-test -test-annotate-tokens=%s:7:1:9:1 %s -target x86_64-apple-macosx10.7.0 | FileCh… 24 // RUN: c-index-test -test-annotate-tokens=%s:10:1:12:1 %s -target x86_64-apple-macosx10.7.0 | File… 30 // RUN: c-index-test -test-annotate-tokens=%s:13:1:14:1 %s -target x86_64-apple-macosx10.7.0 | File… 35 // RUN: c-index-test -test-annotate-tokens=%s:15:1:16:1 %s -target x86_64-apple-macosx10.7.0 | File…
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | attributes.cpp | 65 template<typename T> [[clang::annotate("ANNOTATE_FOO"), clang::annotate("ANNOTATE_BAR")]] void HasA… 95 template <int... Is> [[clang::annotate("ANNOTATE_BAZ", Is...)]] void HasPackAnnotations(); 98 template <int... Is> [[clang::annotate(Is...)]] void HasOnlyPackAnnotation() {} // expected-error {… in HasOnlyPackAnnotation() 298 template <typename T, int... Is> struct [[clang::annotate("ANNOTATE_FOZ", Is...)]] AnnotatedPackTem… 299 template <int... Is> struct [[clang::annotate("ANNOTATE_BOO", Is...)]] AnnotatedPackTemplateStruct<… 300 template <int... Is> struct [[clang::annotate("ANNOTATE_FOZ", 4, 5, 6)]] AnnotatedPackTemplateStruc… 450 template <int... Is> struct [[clang::annotate("ANNOTATE_BIR", Is...)]] InvalidAnnotatedPackTemplate… 547 template <int... Is> [[clang::annotate("ANNOTATE_FAR", Is...)]] void RedeclaredAnnotatedFunc(); 548 template <int... Is> [[clang::annotate("ANNOTATE_BOZ", Is...)]] void RedeclaredAnnotatedFunc(); 549 template <int... Is> [[clang::annotate("ANNOTATE_FIZ", 4, 5)]] void RedeclaredAnnotatedFunc(); [all …]
|
| /llvm-project-15.0.7/clang/test/FixIt/ |
| H A D | fixit-pragma-attribute.cpp | 3 #pragma clang attribute push (annotate) 6 #pragma clang attribute push (annotate(("test"))) 10 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any( enum, function, fun… 14 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any( variable(is_global)… 18 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions"))), apply_to = any(va… 24 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions2"))), apply_to = any(f… 29 #pragma clang attribute push (__attribute__((annotate("negatedSubRuleContradictions1"))), apply_to … 33 #pragma clang attribute push (__attribute__((annotate("negatedSubRuleContradictions2"))), apply_to … 82 #pragma clang attribute push (__attribute__((annotate("a"))))
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | attr-annotate.cpp | 23 template <int I> __attribute__((annotate("test", V, str(), I))) void test() {} in test() 24 __attribute__((annotate("test", Struct<const T*>{&SV[0], &SV[1]}))) void test2() {} in test2() 37 int v __attribute__((annotate("v_ann_0", str(), 90, V))) __attribute__((annotate("v_ann_1", V1)));
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | objc_invalidation.m | 27 - (void) invalidate __attribute__((annotate("objc_instance_variable_invalidator"))); 31 - (void) invalidate __attribute__((annotate("objc_instance_variable_invalidator"))); 35 - (void) invalidate __attribute__((annotate("objc_instance_variable_invalidator"))); 36 - (void) invalidate2 __attribute__((annotate("objc_instance_variable_invalidator"))); 52 - (void) invalidate __attribute__((annotate("objc_instance_variable_invalidator"))); category 119 -(void)partialInvalidator1 __attribute__((annotate("objc_instance_variable_invalidator_partial"))); 120 -(void)partialInvalidator2 __attribute__((annotate("objc_instance_variable_invalidator_partial"))); 241 - (void)invalidate __attribute__((annotate("objc_instance_variable_invalidator"))); 296 -(void)partialInvalidator __attribute__((annotate("objc_instance_variable_invalidator_partial"))); 308 -(void)partialInvalidator __attribute__((annotate("objc_instance_variable_invalidator_partial"))); [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/Attributor/ |
| H A D | new_attributes.ll | 2 ; RUN: opt < %s -attributor -attributor-annotate-decl-cs -attributor-max-iterations=2 -S | FileChe… 3 ; RUN: opt < %s -attributor -attributor-annotate-decl-cs -attributor-max-iterations=3 -S | FileChe… 4 ; RUN: opt < %s -attributor -attributor-annotate-decl-cs -attributor-max-iterations=4 -S | FileChe… 5 ; RUN: opt < %s -attributor -attributor-annotate-decl-cs -attributor-max-iterations=2147483647 -S …
|