Home
last modified time | relevance | path

Searched refs:annotate (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/llvm-project/clang/test/Parser/
H A Dpragma-attribute.cpp3 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = function)
9 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any(variable(is_parameter), function))
12 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = variable(unless(is_parameter)))
15 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any(variable(unless(is_parameter))))
27 #pragma clang attribute push(__attribute__((annotate("test"))), ) // expected-error {{expected attribute subject set specifier 'apply_to'}}
28 #pragma clang attribute push(__attribute__((annotate("test"))), = any(function)) // expected-error {{expected attribute subject set specifier 'apply_to'}}
29 #pragma clang attribute push(__attribute__((annotate("test"))), = function) // expected-error {{expected attribute subject set specifier 'apply_to'}}
30 #pragma clang attribute push(__attribute__((annotate("test"))), any(function)) // expected-error {{expected attribute subject set specifier 'apply_to'}}
31 #pragma clang attribute push(__attribute__((annotate("test"))), function) // expected-error {{expected attribute subject set specifier 'apply_to'}}
32 #pragma clang attribute push(__attribute__((annotate("tes
[all...]
H A Dcxx0x-attributes.cpp270 …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/clang/unittests/Format/
H A DTokenAnnotatorTest.cpp29 TokenList annotate(StringRef Code, in annotate() function in clang::format::__anon43aeb7f80111::TokenAnnotatorTest
31 return TestLexer(Allocator, Buffers, Style).annotate(Code); in annotate()
54 auto Tokens = annotate("auto x = [](const decltype(x) &ptr) {};"); in TEST_F()
62 Tokens = annotate("auto x = [](const decltype(x) *ptr) {};"); in TEST_F()
67 Tokens = annotate("#define lambda [](const decltype(x) &ptr) {}"); in TEST_F()
75 Tokens = annotate("#define lambda [](const decltype(x) *ptr) {}"); in TEST_F()
80 Tokens = annotate("void f() {\n" in TEST_F()
88 Tokens = annotate("case *x:"); in TEST_F()
91 Tokens = annotate("case &x:"); in TEST_F()
95 Tokens = annotate("boo in TEST_F()
[all...]
/llvm-project/clang/test/SemaCXX/
H A Dattr-annotate.cpp32 [[clang::annotate("test", fail_on_int(v))]] void t() {} in t()
34 [[clang::annotate("test", (typename enable_if<!is_same<long, T>::value, int>::type)v)]] void t1() {} in t1()
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", V1)));
67 // expected-error@-1 {{'annotate' attribute requires parameter 4 to be a constant expression}}
69 [[clang::annotate("qdwqwd", cf, cb)]] void t() {} in t()
70 [[clang::annotate("qdwqwd", f, cb)]] void t1() {} in t1()
71 // expected-error@-1 {{'annotate' attribut in t1()
[all...]
H A Dcxx11-attributes-on-using-declaration.cpp7 [[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/clang/test/CodeGen/
H A Dannotations-global.c5 static __attribute((annotate("sfoo_0"))) __attribute((annotate("sfoo_1"))) char sfoo;
6 __attribute((annotate("foo_0"))) __attribute((annotate("foo_1"))) char foo;
8 void __attribute((annotate("ann_a_0"))) __attribute((annotate("ann_a_1"))) __attribute((annotate("a…
9 void __attribute((annotate("ann_a_0"))) __attribute((annotate("ann_a_1"))) a(char *a) { in a()
10 __attribute__((annotate("bar_0"))) __attribute__((annotate("bar_1"))) static char bar; in a()
14 __attribute((address_space(1))) __attribute__((annotate("addrspace1_ann"))) char addrspace1_var;
H A Dannotations-var.c17 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()
29 …int localvar __attribute__((annotate("localvar_ann_0"))) __attribute__((annotate("localvar_ann_1")… in local()
38 int localvar __attribute__((annotate("localvar_after_return"))) = 3; in local_after_return()
46 int undefvar __attribute__((annotate("undefvar_ann_0"))); in undef()
H A D2007-06-15-AnnotateAttribute.c13 int X __attribute__((annotate("GlobalValAnnotation")));
16 int foo(int y) __attribute__((annotate("GlobalValAnnotation")))
19 int foo(int y __attribute__((annotate("LocalValAnnotation")))) { in foo()
20 int x __attribute__((annotate("LocalValAnnotation"))); in foo()
30 int Y __attribute__((annotate(
38 static int a __attribute__((annotate("GlobalValAnnotation"))); in main()
/llvm-project/clang/test/Sema/
H A Dannotate.c3 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 [[clang::annotate("bar")]] x2 += 1; in foo()
7 __attribute__((annotate(1))) int y; // expected-error {{expected string literal as argument of 'annotate' attribute}} in foo()
8 [[clang::annotate(1)]] int y2; // expected-error {{expected string literal as argument of 'annotate' attribute}} in foo()
9 __attribute__((annotate("bar", 1))) int z; in foo()
10 [[clang::annotate("ba in foo()
[all...]
H A Dpragma-attribute.c6 #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 Dpragma-attribute-namespace.c7 #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 Dpragma-attribute-strict-subjects.c3 #pragma clang attribute push (__attribute__((annotate("test"))), apply_to = any(function, variable))
9 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions"))), apply_to = any(variable, variable(is_parameter), function(is_member), variable(is_global)))
15 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions2"))), apply_to = any(function(is_member), function))
20 #pragma clang attribute push (__attribute__((annotate("subRuleContradictions3"))), apply_to = any(variable, variable(unless(is_parameter))))
25 #pragma clang attribute push (__attribute__((annotate("negatedSubRuleContradictions1"))), apply_to = any(variable(is_parameter), variable(unless(is_parameter))))
30 #pragma clang attribute push (__attribute__((annotate("negatedSubRuleContradictions2"))), apply_to = any(variable(unless(is_parameter)), variable(is_thread_local), function, variable(is_global)))
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, objc_protocol))
/llvm-project/clang/test/Index/
H A Dannotate-macro-args.m2 // 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 Dannotate-comments-objc.m129 // CHECK-DAG: annotate-comments-objc.m:7:6: FunctionDecl=functionBeforeImports:{{.*}} BriefComment=…
135 // CHECK: annotate-comments-objc.m:22:50: ObjCPropertyDecl=property1_isdoxy1:{{.*}} property1_isdox…
136 // CHECK: annotate-comments-objc.m:23:50: ObjCPropertyDecl=property1_isdoxy2:{{.*}} property1_isdox…
137 // CHECK: annotate-comments-objc.m:24:50: ObjCPropertyDecl=property1_isdoxy3:{{.*}} property1_isdox…
138 // CHECK: annotate-comments-objc.m:25:50: ObjCPropertyDecl=property1_isdoxy4:{{.*}} property1_isdox…
139 // CHECK: annotate-comments-objc.m:28:9: ObjCInstanceMethodDecl=method1_isdoxy1:{{.*}} method1_isdo…
140 // CHECK: annotate-comments-objc.m:29:9: ObjCInstanceMethodDecl=method1_isdoxy2:{{.*}} method1_isdo…
141 // CHECK: annotate-comments-objc.m:30:9: ObjCInstanceMethodDecl=method1_isdoxy3:{{.*}} method1_isdo…
142 // CHECK: annotate-comments-objc.m:31:9: ObjCInstanceMethodDecl=method1_isdoxy4:{{.*}} method1_isdo…
143 // CHECK: annotate-comments-objc.m:41:22: EnumDecl=An_NS_ENUM_isdoxy1:{{.*}} An_NS_ENUM_isdoxy1 IS_…
[all …]
H A Dcomplete-with-annotations.cpp4 int field __attribute((annotate("one"), annotate("two"), annotate("three")));
6 public __attribute__((annotate("some annotation"))):
8 int member2 __attribute__((annotate("another annotation")));
H A Dannotate-attribute.cpp5 __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 Dindex-attrs.m7 -(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 Dannotate-comments-property-accessor.m15 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert…
21 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert…
22 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert…
31 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert…
32 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert…
41 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert…
51 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert…
52 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments-propert…
H A Dannotate-comments-typedef.m19 …ocumentation for MyEnum </p>] FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.…
29 …rief"> Documentation for E </p>] FullCommentAsXML=[<Enum file="{{[^"]+}}annotate-comments-typedef.…
30 …f"> Documentation for E </p>] FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.…
37 …ief"> Comment about Foo </p>] FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.…
38 …brief"> Comment about Foo </p>] FullCommentAsXML=[<Class file="{{[^"]+}}annotate-comments-typedef.…
47 …sXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.m" line="[[@LINE-2]]" column="21"><Name>Fo…
H A Dannotate-parameterized-classes.m18 // 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/clang/test/SemaTemplate/
H A Dattributes.cpp65 template<typename T> [[clang::annotate("ANNOTATE_FOO"), clang::annotate("ANNOTATE_BAR")]] void HasAnnotations();
75 [[clang::annotate("ANNOTATE_BAZ")]] x++;
106 template <int... Is> [[clang::annotate("ANNOTATE_BAZ", Is...)]] void HasPackAnnotations();
132 [[clang::annotate("ANNOTATE_QUUX", Is...)]] x++;
136 template <int... Is> [[clang::annotate(Is...)]] void HasOnlyPackAnnotation() {} // expected-error {{expected string literal as argument of 'annotate' attribute}}
317 template <typename T, int... Is> struct [[clang::annotate("ANNOTATE_FOZ", Is...)]] AnnotatedPackTemplateStruct{};
318 template <int... Is> struct [[clang::annotate("ANNOTATE_BOO", Is...)]] AnnotatedPackTemplateStruct<int, Is...>{};
319 template <int... Is> struct [[clang::annotate("ANNOTATE_FO
[all...]
/llvm-project/clang/test/FixIt/
H A Dfixit-pragma-attribute.cpp3 #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/clang/test/CodeGenCXX/
H A Dattr-annotate.cpp3 //CHECK: @[[STR1:.*]] = private unnamed_addr constant [{{.*}} x i8] c"{{.*}}attr-annotate.cpp\00", section "llvm.metadata"
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/clang/test/Analysis/
H A Dobjc_invalidation.m27 - (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")));
309 -(void)partialInvalidator __attribute__((annotate("objc_instance_variable_invalidator_partial")));
321 -(void)partialInvalidator __attribute__((annotate("objc_instance_variable_invalidator_partial")));
[all …]
H A Dretain-release-inline.m305 __attribute__((annotate("rc_ownership_returns_retained"))) isl_basic_map *isl_basic_map_cow(__attri…
308 void callee_side_parameter_checking_leak(__attribute__((annotate("rc_ownership_consumed"))) isl_bas…
316 __attribute__((annotate("rc_ownership_trusted_implementation"))) isl_basic_map *isl_basic_map_free(…
331 __attribute__((annotate("rc_ownership_trusted_implementation"))) __attribute__((annotate("rc_owners…
339 void test_use_after_release_with_trusted_implementation_annotate_attribute(__attribute__((annotate(…
350 void test_leak_with_trusted_implementation_annotate_attribute(__attribute__((annotate("rc_ownership…
361 __attribute__((annotate("rc_ownership_returns_retained"))) isl_basic_map *callee_side_parameter_che…
365annotate("rc_ownership_returns_retained"))) isl_basic_map *callee_side_parameter_checking_assign_c…
371annotate("rc_ownership_returns_retained"))) isl_basic_map *callee_side_parameter_checking_assign_c…
377annotate("rc_ownership_returns_retained"))) isl_basic_map *error_path_leak(__attribute__((annotate

12345678910>>...12