Home
last modified time | relevance | path

Searched refs:declaration (Results 1 – 25 of 631) sorted by relevance

12345678910>>...26

/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dcategory-direct-properties.m7 @property(nonatomic, readonly) int normal_direct; // expected-note {{previous declaration is here}}
51 @property(nonatomic, readwrite) int normal_direct; // expected-note {{previous declaration is here}}
80 …ect_normal; // expected-error {{property declaration conflicts with previous direct declar…
81 …t normal_direct; // expected-error {{direct property declaration conflicts with previous declarati…
82 …rect_direct; // expected-error {{direct property declaration conflicts with previous direct declar…
101 …ect_normal; // expected-error {{property declaration conflicts with previous direct declar…
102 …t normal_direct; // expected-error {{direct property declaration conflicts with previous declarati…
103 …rect_direct; // expected-error {{direct property declaration conflicts with previous direct declar…
148 …ect_normal; // expected-error {{property declaration conflicts with previous direct declar…
149 …t normal_direct; // expected-error {{direct property declaration conflicts with previous declarati…
[all …]
H A Dclass-protocol-method-match.m6 - (bycopy id)bud; // expected-note {{previous declaration is here}}
7 - (unsigned char) baz; // expected-note {{previous declaration is here}}
14 - (unsigned char) baz; // expected-note {{previous declaration is here}}
15 - (unsigned char) also_ok; // expected-note {{previous declaration is here}}
16 - (void) ban : (int) arg, ...; // expected-note {{previous declaration is here}}
20 - (void) bar : (unsigned char)arg; // expected-note {{previous declaration is here}}
22 - (char) bak; // expected-note {{previous declaration is here}}
26 …xpected-warning {{conflicting distributed object modifiers on return type in declaration of 'bud'}}
27 - (void) baz; // expected-warning 2 {{conflicting return type in declaration of 'baz': 'unsigned ch…
32 - (void) ban : (int) arg; // expected-warning {{conflicting variadic declaration of method and its …
[all …]
H A Dcheck-dup-decl-methods-1.m11 - (int) meth; // expected-note {{previous declaration is here}}
12 - (int*) meth; // expected-error {{duplicate declaration of method 'meth'}}
13 - (T*) meth1; // expected-note {{previous declaration is here}}
19 - (int) catm : (char)ch1; // expected-note {{previous declaration is here}}
21 - (int) catm : (char*)ch1; // expected-error {{duplicate declaration of method 'catm:'}}
27 + (int) catm1 : (char)ch : (int)i; // expected-note {{previous declaration is here}}
28 + (T*) meth1; // expected-note {{previous declaration is here}}
29 + (int) catm1 : (char)ch : (int*)i; // expected-error {{duplicate declaration of method 'catm1::'}}
30 + (T**) meth1; // expected-error {{duplicate declaration of method 'meth1'}}
35 - (int) meth; // expected-note {{previous declaration is here}}
[all …]
H A Dmethod-direct-one-definition.m8 - (void)A_Cat __attribute__((objc_direct)); // expected-note {{previous declaration is here}}
18 - (void)B_primary __attribute__((objc_direct)); // expected-note {{previous declaration is here}}
22 - (void)B_extension __attribute__((objc_direct)); // expected-note {{previous declaration is here}}
30 - (void)B_OtherCat __attribute__((objc_direct)); // expected-note {{previous declaration is here}}
38 - (void)B_implOnly __attribute__((objc_direct)) { // expected-note {{previous declaration is here}}
51 …bjc_direct)) { // expected-error {{direct method declaration conflicts with previous direct declar…
57 - (void)C1 __attribute__((objc_direct)); // expected-note {{previous declaration is here}}
58 - (void)C2; // expected-note {{previous declaration is here}}
62 … // expected-error {{method declaration conflicts with previous direct declar…
63 …__((objc_direct)); // expected-error {{direct method declaration conflicts with previous declarati…
H A Dqualified-protocol-method-conflicts.m5 -(void) setX: (int) arg0; // expected-note {{previous declaration is here}}
6 +(int) C; // expected-note {{previous declaration is here}}
10 -(void) setX: (float) arg0; // expected-note 2 {{previous declaration is here}}
11 +(float) C; // expected-note 2 {{previous declaration is here}}
18 -(void) setX: (int) arg0 { } // expected-warning {{conflicting parameter types in declaration of 's…
19 +(int) C {return 0; } // expected-warning {{conflicting return type in declaration of 'C': 'float' …
26 -(void) setX: (float) arg0 { } // expected-warning {{conflicting parameter types in declaration of …
27 + (float) C {return 0.0; } // expected-warning {{conflicting return type in declaration of 'C': 'in…
37 -(void) setX: (int) arg0 { } // expected-warning {{conflicting parameter types in declaration of 's…
38 + (int) C {return 0;} // expected-warning {{conflicting return type in declaration of 'C': 'float' …
H A Dmethod-direct.m4 - (void)protoMethod; // expected-note {{previous declaration is here}}
5 + (void)classProtoMethod; // expected-note {{previous declaration is here}}
16 - (void)rootRegular; // expected-note {{previous declaration is he…
17 + (void)classRootRegular; // expected-note {{previous declaration is he…
18 - (void)rootDirect __attribute__((objc_direct)); // expected-note {{previous declaration is he…
19 + (void)classRootDirect __attribute__((objc_direct)); // expected-note {{previous declaration is he…
29 - (void)rootExtensionDirect; // expected-note {{previous declaration is here}}
30 + (void)classRootExtensionDirect; // expected-note {{previous declaration is here}}
35 - (void)rootCategoryDirect; // expected-note {{previous declaration is here}}
36 + (void)classRootCategoryDirect; // expected-note {{previous declaration is here}}
[all …]
H A Dmethod-direct-properties.m9 …natomic, direct) int propertyWithNonDirectGetter; // expected-note {{previous declaration is here}}
15 …readonly, direct) int getDirect_setDynamic; // expected-note {{previous declaration is here}}
16 …readonly, direct) int getDirect_setDirect; // expected-note {{previous declaration is here}}
25 …tomic, readonly, direct) int directProperty; // expected-note {{previous declaration is here}}
26 …tomic, readonly, direct) int synthDirectProperty; // expected-note {{previous declaration is here}}
32 @property(nonatomic) int propertyWithNonDirectGetter2; // expected-note {{previous declaration is h…
34 …omic, readwrite) int getDirect_setDirectMembers; // expected-note {{previous declaration is here}}
35 …omic, readwrite) int getDynamic_setDirectMembers; // expected-note {{previous declaration is here}}
40 …omic, readwrite, direct) int getDirect_setDirect; // expected-note {{previous declaration is here}}
42 …mic, readwrite, direct) int getDynamic_setDirect; // expected-note {{previous declaration is here}}
[all …]
H A Dclass-extension-dup-methods.m4 - (int) garf; // expected-note {{previous declaration is here}}
6 + (int) cgarf; // expected-note {{previous declaration is here}}
11 - (void) garf; // expected-error {{duplicate declaration of method 'garf'}}
12 + (void) cgarf; // expected-error {{duplicate declaration of method 'cgarf'}}
22 …ent:(NSObject *)argument : (NSObject*) argument2; // expected-note {{previous declaration is here}}
27 …ment:(float)argument : (float)argument2; // expected-error {{duplicate declaration of method 'some…
H A Dproperty.m19 @dynamic bad; // expected-error {{property implementation must have its declaration in interface…
20 …operty 'prop_id' must either be named the same}} // expected-note {{previous declaration is here}}
27 @dynamic bad; // expected-error {{property implementation must have its declaration in the categor…
30 @implementation E // expected-warning {{cannot find interface declaration for 'E'}}
31 @dynamic d; // expected-error {{property implementation must have its declaration in interface 'E'…
34 @implementation Q(MYCAT) // expected-error {{cannot find interface declaration for 'Q'}}
35 @dynamic d; // expected-error {{property implementation in a category with no category declaration
62 @property int treeController; // expected-error {{property has a previous declaration}}
66 @synthesize window; // expected-error {{missing context for property implementation declaration}}
H A Dbuiltin_objc_lib_functions.m4 …// expected-note {{include the header <objc/runtime.h> or explicitly provide a declaration for 'ob…
8 …// expected-note {{include the header <objc/runtime.h> or explicitly provide a declaration for 'ob…
11 …// expected-note {{include the header <objc/runtime.h> or explicitly provide a declaration for 'ob…
14 …// expected-note {{include the header <objc/message.h> or explicitly provide a declaration for 'ob…
16 id f4(struct objc_super *super, SEL op) { // expected-warning {{declaration of 'struct objc_super' …
18 …// expected-note {{include the header <objc/message.h> or explicitly provide a declaration for 'ob…
23 …d-note {{include the header <objc/objc-auto.h> or explicitly provide a declaration for 'objc_assig…
28 …e {{include the header <objc/objc-exception.h> or explicitly provide a declaration for 'objc_excep…
H A Dclass-conforming-protocol-1.m8 - (INTF*) METH1; // expected-note {{previous declaration is here}}
9 - (INTF<P1>*) METH1; // expected-error {{duplicate declaration of method 'METH1'}}
11 - (INTF<P2,P1>*) METH2; // expected-note {{previous declaration is here}}
12 - (INTF<P2,P1,P3>*) METH2; // expected-error {{duplicate declaration of method 'METH2'}}
14 - (INTF<P2,P1,P3>*) METH3; // expected-note {{previous declaration is here}}
H A Dalias-test-1.m3 @compatibility_alias alias4 foo; // expected-warning {{cannot find interface declaration for 'foo'}}
5 @class class2; // expected-note {{previous declaration is here}}
8 typedef int I; // expected-note {{previous declaration is here}}
10 @compatibility_alias alias1 I; // expected-warning {{cannot find interface declaration for 'I'}}
16 typedef int alias2; // expected-note {{previous declaration is here}}
H A Dprotocol-expr-neg-1.m15 …otocol(fproto); // expected-error {{@protocol is using a forward protocol declaration of 'fproto'}}
16 Protocol *pp = @protocol(i); // expected-error {{cannot find protocol declaration for 'i'}}
17 Protocol *p1p = @protocol(cl); // expected-error {{cannot find protocol declaration for 'cl'}}
29 …tProtocol)]; // expected-error {{@protocol is using a forward protocol declaration of 'TestProtoco…
33 …rProtocol)]; // expected-error {{@protocol is using a forward protocol declaration of 'SuperProtoc…
/llvm-project-15.0.7/clang-tools-extra/pseudo/lib/cxx/
H A Dcxx.bnf312 declaration-seq := declaration
313 declaration-seq := declaration-seq declaration
314 declaration := block-declaration
317 declaration := template-declaration
321 declaration := export-declaration
324 declaration := empty-declaration
325 declaration := module-import-declaration
326 block-declaration := simple-declaration
327 block-declaration := asm-declaration
329 block-declaration := using-declaration
[all …]
/llvm-project-15.0.7/clang/docs/tools/
H A Ddump_ast_matchers.py171 if declaration.strip():
345 declaration, flags=re.X)
355 declaration, flags=re.X)
365 declaration, flags=re.X)
385 declaration, flags=re.X)
398 declaration, flags=re.X)
461 declaration = '' variable
467 if declaration:
470 declaration = '' variable
481 declaration += ' ' + line
[all …]
/llvm-project-15.0.7/clang/test/Sema/
H A Dwarn-strict-prototypes.m5 @property (nonatomic, copy) void (^noProtoBlock)(); // expected-warning {{a block declaration witho…
8 - doStuff:(void (^)()) completionHandler; // expected-warning {{a block declaration without a proto…
13 void foo() { // expected-warning {{a function declaration without a prototype is deprecated in all …
14 void (^block)() = // expected-warning {{a block declaration without a prototype is deprecated}}
23 void (*(^(*(^block4)()) // expected-warning {{a block declaration without a prototype is deprecated…
24 …()) // expected-warning {{a function declaration without a prototype is deprecated in all versions…
25 ()) // expected-warning {{a block declaration without a prototype is deprecated}}
26 …(); // expected-warning {{a function declaration without a prototype is deprecated in all versions…
H A Dimplicit-intel-builtin-decl.c7 …xpected-note{{include the header <xmmintrin.h> or explicitly provide a declaration for '_mm_getcsr… in f()
10 …xpected-note{{include the header <xmmintrin.h> or explicitly provide a declaration for '_mm_setcsr… in f()
13 …xpected-note{{include the header <xmmintrin.h> or explicitly provide a declaration for '_mm_sfence… in f()
17 …xpected-note{{include the header <emmintrin.h> or explicitly provide a declaration for '_mm_clflus… in f()
20 …xpected-note{{include the header <emmintrin.h> or explicitly provide a declaration for '_mm_lfence… in f()
23 …xpected-note{{include the header <emmintrin.h> or explicitly provide a declaration for '_mm_mfence… in f()
26 …xpected-note{{include the header <emmintrin.h> or explicitly provide a declaration for '_mm_pause'… in f()
H A Dwarn-documentation.m17 // expected-warning@+2 {{parameter 'aab' not found in the function declaration}} expected-note@+2 {…
102 …@+2 {{'@method' command should be used in a comment attached to an Objective-C method declaration}}
111 …5 {{'@interface' command should not be used in a comment attached to a non-interface declaration}}
113 …@+5 {{'@coclass' command should not be used in a comment attached to a non-container declaration}}
141 …g@+2 {{'@protocol' command should not be used in a comment attached to a non-protocol declaration}}
165 …g@+2 {{'@protocol' command should not be used in a comment attached to a non-protocol declaration}}
171 …rning@+2 {{'@struct' command should not be used in a comment attached to a non-struct declaration}}
194 - (void)removeReach:(NSObject*)observer // expected-note {{previous declaration is here}}
197 - (void)removeReach:(NSObject*)observer // expected-error {{duplicate declaration of method 'remove…
203 /// @class Asset <- '@class' may be used in a comment attached to a an interface declaration
[all …]
/llvm-project-15.0.7/polly/lib/External/
H A Disl_config.h.cmake8 /* Define to 1 if you have the declaration of `ffs', and to 0 if you don't. */
11 /* Define to 1 if you have the declaration of `__builtin_ffs', and to 0 if you
15 /* Define to 1 if you have the declaration of `_BitScanForward', and to 0 if
20 /* Define to 1 if you have the declaration of `strcasecmp', and to 0 if you
24 /* Define to 1 if you have the declaration of `_stricmp', and to 0 if you
29 /* Define to 1 if you have the declaration of `strncasecmp', and to 0 if you
33 /* Define to 1 if you have the declaration of `_strnicmp', and to 0 if you
38 /* Define to 1 if you have the declaration of `snprintf', and to 0 if you
42 /* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
/llvm-project-15.0.7/clang/test/Modules/
H A Ddiagnose-missing-import.m3 // RUN: -Werror=implicit-function-declaration -fsyntax-only \
9 … expected-error {{declaration of 'XYZLogEvent' must be imported}} \
10 … expected-error {{declaration of 'xyzRiskyCloseOpenParam' must be imported from module 'NCI.A'}} \
11 … expected-error {{declaration of 'xyzRiskyCloseOpenParam' must be imported from module 'NCI.A'}}
14 // expected-note@Inputs/diagnose-missing-import/a.h:5 {{declaration here is not visible}}
15 // expected-note@Inputs/diagnose-missing-import/a.h:5 {{declaration here is not visible}}
16 // expected-note@Inputs/diagnose-missing-import/a.h:6 {{declaration here is not visible}}
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/google/
H A Dobjc-global-variable-declaration.m1 // RUN: %check_clang_tidy %s google-objc-global-variable-declaration %t
6 … must have a name which starts with an appropriate prefix [google-objc-global-variable-declaration]
10 … must have a name which starts with an appropriate prefix [google-objc-global-variable-declaration]
13 …le 'MyString' must have a name which starts with 'g[A-Z]' [google-objc-global-variable-declaration]
17 …globalString' must have a name which starts with 'g[A-Z]' [google-objc-global-variable-declaration]
21 … variable 'a' must have a name which starts with 'g[A-Z]' [google-objc-global-variable-declaration]
25 …iable 'noDef' must have a name which starts with 'g[A-Z]' [google-objc-global-variable-declaration]
29 … must have a name which starts with an appropriate prefix [google-objc-global-variable-declaration]
33 … must have a name which starts with an appropriate prefix [google-objc-global-variable-declaration]
37 … must have a name which starts with an appropriate prefix [google-objc-global-variable-declaration]
[all …]
/llvm-project-15.0.7/clang/test/SemaOpenCL/
H A Dinvalid-image.cl24 typedef int image1d_t; // expected-error{{cannot combine with previous 'int' declaration specifier}…
25 typedef int image2d_t; // expected-error{{cannot combine with previous 'int' declaration specifier}…
26 typedef int image3d_t; // expected-error{{cannot combine with previous 'int' declaration specifier}…
27 typedef int image1d_array_t; // expected-error{{cannot combine with previous 'int' declaration spec…
28 typedef int image2d_array_t; // expected-error{{cannot combine with previous 'int' declaration spec…
29 typedef int image2d_depth_t; // expected-error{{cannot combine with previous 'int' declaration spec…
30 typedef int image1d_buffer_t; // expected-error{{cannot combine with previous 'int' declaration spe…
38 // expected-error@-5{{cannot combine with previous 'int' declaration specifier}} expected-warning@-…
39 // expected-error@-5{{cannot combine with previous 'int' declaration specifier}} expected-warning@-…
40 // expected-error@-5{{cannot combine with previous 'int' declaration specifier}} expected-warning@-…
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dforward-declaration-namespace.rst1 .. title:: clang-tidy - bugprone-forward-declaration-namespace
3 bugprone-forward-declaration-namespace
6 Checks if an unused forward declaration is in a wrong namespace.
9 declaration/definition with the same name existing, which could indicate that
10 the forward declaration is in a potentially wrong namespace.
/llvm-project-15.0.7/clang/test/Parser/
H A Dobjc-error-qualified-implementation.m9 @implementation I<P> @end // expected-error {{@implementation declaration cannot be protocol qualif…
15 @implementation J < P,P > // expected-error {{@implementation declaration cannot be protocol qualif…
20 @implementation K <P // expected-error {{@implementation declaration cannot be protocol qualified}}…
24 @implementation I (Cat) <P> // expected-error {{@implementation declaration cannot be protocol qua…
28 @implementation I (Cat1) <P // expected-error {{@implementation declaration cannot be protocol qual…
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/objc/
H A Dproperty-declaration.m1 // RUN: %check_clang_tidy %s objc-property-declaration %t
12 …or not prefixed in a category, according to the Apple Coding Guidelines [objc-property-declaration]
20 …or not prefixed in a category, according to the Apple Coding Guidelines [objc-property-declaration]
37 …or not prefixed in a category, according to the Apple Coding Guidelines [objc-property-declaration]
39 …or not prefixed in a category, according to the Apple Coding Guidelines [objc-property-declaration]
42 …or not prefixed in a category, according to the Apple Coding Guidelines [objc-property-declaration]
45 …or not prefixed in a category, according to the Apple Coding Guidelines [objc-property-declaration]
54 …or not prefixed in a category, according to the Apple Coding Guidelines [objc-property-declaration]

12345678910>>...26