Home
last modified time | relevance | path

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

12345678910>>...46

/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/nodeTypes/
DNodeWithVariablesTest.java36 VariableDeclarationExpr declaration = parseVariableDeclarationExpr("int a,b"); in getCommonTypeWorksForNormalVariables() local
37 assertEquals(PrimitiveType.intType(), declaration.getCommonType()); in getCommonTypeWorksForNormalVariables()
52 VariableDeclarationExpr declaration = parseVariableDeclarationExpr("int a,b"); in getCommonTypeFailsOnDodgySetterUsage() local
53 declaration.getVariable(1).setType(String.class); in getCommonTypeFailsOnDodgySetterUsage()
54 declaration.getCommonType(); in getCommonTypeFailsOnDodgySetterUsage()
59 VariableDeclarationExpr declaration = parseVariableDeclarationExpr("int a"); in getCommonTypeFailsOnInvalidEmptyVariableList() local
60 declaration.getVariables().clear(); in getCommonTypeFailsOnInvalidEmptyVariableList()
61 declaration.getCommonType(); in getCommonTypeFailsOnInvalidEmptyVariableList()
66 VariableDeclarationExpr declaration = parseVariableDeclarationExpr("int a,b"); in getElementTypeWorksForNormalVariables() local
67 assertEquals(PrimitiveType.intType(), declaration.getElementType()); in getElementTypeWorksForNormalVariables()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/
DMethodUsage.java41 private ResolvedMethodDeclaration declaration; field in MethodUsage
47 public MethodUsage(ResolvedMethodDeclaration declaration) { in MethodUsage() argument
49 this.declaration = declaration; in MethodUsage()
50 for (int i = 0; i < declaration.getNumberOfParams(); i++) { in MethodUsage()
51 paramTypes.add(declaration.getParam(i).getType()); in MethodUsage()
53 for (int i = 0; i < declaration.getNumberOfSpecifiedExceptions(); i++) { in MethodUsage()
54 exceptionTypes.add(declaration.getSpecifiedException(i)); in MethodUsage()
56 returnType = declaration.getReturnType(); in MethodUsage()
59 public MethodUsage(ResolvedMethodDeclaration declaration, in MethodUsage() argument
61 this(declaration, paramTypes, returnType, declaration.getSpecifiedExceptions(), in MethodUsage()
[all …]
/external/clang/test/SemaOpenCL/
Dclang-builtin-version.cl7 …enqueue_kernel(tmp, tmp, tmp, ^(void) { // expected-warning{{implicit declaration of function 'enq…
10 …unsigned size = get_kernel_work_group_size(^(void) { // expected-warning{{implicit declaration of …
13 …erred_work_group_size_multiple(^(void) { // expected-warning{{implicit declaration of function 'ge…
21 …read_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'read_pipe' is invalid…
22 …write_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'write_pipe' is invali…
24 …reserve_read_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'reserve_read_…
25 …reserve_write_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'reserve_write…
27 …work_group_reserve_read_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'wo…
28 …work_group_reserve_write_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'wo…
30 …sub_group_reserve_write_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'sub…
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DJavaParserAPIIntegrationTest.java52 AnnotationDeclaration declaration = (AnnotationDeclaration)cu.getType(0); in annotationDeclarationResolve() local
53 assertEquals("MyAnnotation", declaration.getNameAsString()); in annotationDeclarationResolve()
54 ResolvedAnnotationDeclaration resolvedDeclaration = declaration.resolve(); in annotationDeclarationResolve()
63 AnnotationDeclaration declaration = (AnnotationDeclaration)cu.getType(2); in annotationMemberDeclarationResolve() local
64 assertEquals("MyAnnotationWithFields", declaration.getNameAsString()); in annotationMemberDeclarationResolve()
65 …AnnotationMemberDeclaration memberDeclaration = (AnnotationMemberDeclaration)declaration.getMember… in annotationMemberDeclarationResolve()
73 ClassOrInterfaceDeclaration declaration = (ClassOrInterfaceDeclaration)cu.getType(0); in classDeclarationResolve() local
74 declaration.resolve(); in classDeclarationResolve()
81 ClassOrInterfaceDeclaration declaration = (ClassOrInterfaceDeclaration)cu.getType(1); in interfaceDeclarationResolve() local
82 assertEquals("VoidVisitor", declaration.getNameAsString()); in interfaceDeclarationResolve()
[all …]
/external/virglrenderer/src/gallium/auxiliary/tgsi/
Dtgsi_build.c88 struct tgsi_declaration *declaration, in declaration_grow() argument
91 assert( declaration->NrTokens < 0xFF ); in declaration_grow()
93 declaration->NrTokens++; in declaration_grow()
101 struct tgsi_declaration declaration; in tgsi_default_declaration() local
103 declaration.Type = TGSI_TOKEN_TYPE_DECLARATION; in tgsi_default_declaration()
104 declaration.NrTokens = 1; in tgsi_default_declaration()
105 declaration.File = TGSI_FILE_NULL; in tgsi_default_declaration()
106 declaration.UsageMask = TGSI_WRITEMASK_XYZW; in tgsi_default_declaration()
107 declaration.Interpolate = 0; in tgsi_default_declaration()
108 declaration.Dimension = 0; in tgsi_default_declaration()
[all …]
/external/clang/test/SemaObjC/
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…
28 …signed char*)arg; // expected-warning {{conflicting parameter types in declaration of 'bar:': 'uns…
[all …]
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 …]
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' …
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…
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…
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}}
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}}
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}}
Dprotocol-expr-neg-1.m15 …otocol(fproto); // expected-warning {{@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 …rotocol)]; // expected-warning {{@protocol is using a forward protocol declaration of TestProtocol…
33 …rotocol)]; // expected-warning {{@protocol is using a forward protocol declaration of SuperProtoco…
Dobjc2-merge-gc-attribue-decl.m13 extern __weak id WLoopGetMain(); // expected-note {{previous declaration is here}}
16 extern id p3; // expected-note {{previous declaration is here}}
19 extern void *p4; // expected-note {{previous declaration is here}}
25 extern char* __strong p6; // expected-note {{previous declaration is here}}
28 extern __strong char* p7; // expected-note {{previous declaration is here}}
/external/clang/docs/tools/
Ddump_ast_matchers.py131 def act_on_decl(declaration, comment, allowed_types): argument
138 if declaration.strip():
144 \s*([^\s;]+)\s*;\s*$""", declaration, flags=re.X)
157 \)\s*;\s*$""", declaration, flags=re.X)
172 \)\s*;\s*$""", declaration, flags=re.X)
196 \)\s*{\s*$""", declaration, flags=re.X)
205 raise Exception('Cannot parse "%s"' % declaration)
220 \)\s*{\s*$""", declaration, flags=re.X)
225 raise Exception('Cannot parse "%s"' % declaration)
239 \)\s*{\s*$""", declaration, flags=re.X)
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_build.c88 struct tgsi_declaration *declaration, in declaration_grow() argument
91 assert( declaration->NrTokens < 0xFF ); in declaration_grow()
93 declaration->NrTokens++; in declaration_grow()
101 struct tgsi_declaration declaration; in tgsi_default_declaration() local
103 declaration.Type = TGSI_TOKEN_TYPE_DECLARATION; in tgsi_default_declaration()
104 declaration.NrTokens = 1; in tgsi_default_declaration()
105 declaration.File = TGSI_FILE_NULL; in tgsi_default_declaration()
106 declaration.UsageMask = TGSI_WRITEMASK_XYZW; in tgsi_default_declaration()
107 declaration.Interpolate = 0; in tgsi_default_declaration()
108 declaration.Dimension = 0; in tgsi_default_declaration()
[all …]
/external/strace/
Dconfig.h.in60 /* Define to 1 if you have the declaration of `BTRFS_COMPRESS_LZO', and to 0
64 /* Define to 1 if you have the declaration of `BTRFS_COMPRESS_NONE', and to 0
68 /* Define to 1 if you have the declaration of `BTRFS_COMPRESS_ZLIB', and to 0
72 /* Define to 1 if you have the declaration of `CTL_ARLAN', and to 0 if you
76 /* Define to 1 if you have the declaration of `CTL_FRV', and to 0 if you
80 /* Define to 1 if you have the declaration of `CTL_PM', and to 0 if you don't.
84 /* Define to 1 if you have the declaration of `CTL_PROC', and to 0 if you
88 /* Define to 1 if you have the declaration of `CTL_S390DBF', and to 0 if you
92 /* Define to 1 if you have the declaration of `CTL_SUNRPC', and to 0 if you
96 /* Define to 1 if you have the declaration of `IFLA_AF_SPEC', and to 0 if you
[all …]
/external/guava/guava/src/com/google/common/reflect/
DParameter.java39 private final Invokable<?, ?> declaration; field in Parameter
45 Invokable<?, ?> declaration, in Parameter() argument
49 this.declaration = declaration; in Parameter()
62 return declaration; in getDeclaringInvokable()
128 return position == that.position && declaration.equals(that.declaration); in equals()
/external/swiftshader/src/D3D8/
DDirect3DVertexDeclaration8.cpp34 declaration = new unsigned long[size / sizeof(unsigned long)]; in Direct3DVertexDeclaration8()
35 memcpy(declaration, vertexElement, size); in Direct3DVertexDeclaration8()
40 delete[] declaration; in ~Direct3DVertexDeclaration8()
41 declaration = 0; in ~Direct3DVertexDeclaration8()
69 return declaration; in getDeclaration()
DDirect3DVertexShader8.cpp21 …8::Direct3DVertexShader8(Direct3DDevice8 *device, const unsigned long *declaration, const unsigned… in Direct3DVertexShader8() argument
46 this->declaration = new Direct3DVertexDeclaration8(device, declaration); in Direct3DVertexShader8()
57 declaration->Release(); in ~Direct3DVertexShader8()
90 return declaration->getDeclaration(); in getDeclaration()
/external/clang/test/Parser/
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…
/external/clang/test/Sema/
Dwarn-documentation.m16 // expected-warning@+2 {{parameter 'aab' not found in the function declaration}} expected-note@+2 {…
94 // expected-warning@+2 {{parameter 'bbb' not found in the function declaration}} expected-note@+2 {…
101 …@+2 {{'@method' command should be used in a comment attached to an Objective-C method declaration}}
110 …5 {{'@interface' command should not be used in a comment attached to a non-interface declaration}}
111 … {{'@classdesign' command should not be used in a comment attached to a non-container declaration}}
112 …@+5 {{'@coclass' command should not be used in a comment attached to a non-container declaration}}
127 …{'@methodgroup' command should be used in a comment attached to an Objective-C method declaration}}
140 …g@+2 {{'@protocol' command should not be used in a comment attached to a non-protocol declaration}}
164 …g@+2 {{'@protocol' command should not be used in a comment attached to a non-protocol declaration}}
170 …rning@+2 {{'@struct' command should not be used in a comment attached to a non-struct declaration}}
[all …]
/external/clang/include/clang/Basic/
DDiagnosticCommentKinds.td77 "a function declaration">,
84 "a pointer to function}2 declaration">,
90 "non-%select{class|interface|protocol|struct|union}2 declaration">,
96 "command should not be used in a comment attached to a non-container declaration">,
107 "parameter '%0' not found in the function declaration">,
117 "a template declaration">,
128 "template parameter '%0' not found in the template declaration">,
138 "a function or method declaration">,
150 "declaration is marked with '\\deprecated' command but does not have "
155 "add a deprecation attribute to the declaration to silence this warning">;
/external/ltp/include/
Dconfig.h.default24 /* Define to 1 if you have the declaration of `CAP_BSET_DROP', and to 0 if you
28 /* Define to 1 if you have the declaration of `CAP_BSET_READ', and to 0 if you
32 /* Define to 1 if you have the declaration of `cap_compare', and to 0 if you
36 /* Define to 1 if you have the declaration of `cap_free', and to 0 if you
40 /* Define to 1 if you have the declaration of `cap_from_text', and to 0 if you
44 /* Define to 1 if you have the declaration of `cap_get_proc', and to 0 if you
48 /* Define to 1 if you have the declaration of `cap_set_file', and to 0 if you
52 /* Define to 1 if you have the declaration of `cap_set_flag', and to 0 if you
56 /* Define to 1 if you have the declaration of `cap_set_proc', and to 0 if you
60 /* Define to 1 if you have the declaration of `cap_to_text', and to 0 if you
[all …]

12345678910>>...46