Home
last modified time | relevance | path

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

12345678910>>...73

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/
DNodeWithVariablesTest.java37 VariableDeclarationExpr declaration = parseVariableDeclarationExpr("int a,b"); in getCommonTypeWorksForNormalVariables() local
38 assertEquals(PrimitiveType.intType(), declaration.getCommonType()); in getCommonTypeWorksForNormalVariables()
54 VariableDeclarationExpr declaration = parseVariableDeclarationExpr("int a,b"); in getCommonTypeFailsOnDodgySetterUsage()
55 declaration.getVariable(1).setType(String.class); in getCommonTypeFailsOnDodgySetterUsage()
56 declaration.getCommonType(); in getCommonTypeFailsOnDodgySetterUsage()
63 VariableDeclarationExpr declaration = parseVariableDeclarationExpr("int a"); in getCommonTypeFailsOnInvalidEmptyVariableList()
64 declaration.getVariables().clear(); in getCommonTypeFailsOnInvalidEmptyVariableList()
65 declaration.getCommonType(); in getCommonTypeFailsOnInvalidEmptyVariableList()
71 VariableDeclarationExpr declaration = parseVariableDeclarationExpr("int a,b"); in getElementTypeWorksForNormalVariables() local
72 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/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/methods/
DMethodUsage.java35 private MethodDeclaration declaration; field in MethodUsage
40 public MethodUsage(MethodDeclaration declaration) { in MethodUsage() argument
42 this.declaration = declaration; in MethodUsage()
43 for (int i = 0; i < declaration.getNumberOfParams(); i++) { in MethodUsage()
44 paramTypes.add(declaration.getParam(i).getType()); in MethodUsage()
46 returnType = declaration.getReturnType(); in MethodUsage()
49 public MethodUsage(MethodDeclaration declaration, List<Type> paramTypes, Type returnType) { in MethodUsage() argument
50 this(declaration, paramTypes, returnType, TypeParametersMap.empty()); in MethodUsage()
53 …private MethodUsage(MethodDeclaration declaration, List<Type> paramTypes, Type returnType, TypePar… in MethodUsage() argument
54 this.declaration = declaration; 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(3); in annotationMemberDeclarationResolve() local
64 assertEquals("MyAnnotationWithElements", 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/llvm-project/clang/test/SemaOpenCL/
Dclang-builtin-version.cl7 …enqueue_kernel(tmp, tmp, tmp, ^(void) { // expected-error{{implicit declaration of function 'enque…
10 …unsigned size = get_kernel_work_group_size(^(void) { // expected-error{{implicit declaration of fu…
13 …eferred_work_group_size_multiple(^(void) { // expected-error{{implicit declaration of function 'ge…
21 foo(void); // expected-error{{implicit declaration of function 'foo' is invalid in OpenCL}}
24 boo(); // expected-error{{implicit declaration of function 'boo' is invalid in OpenCL}}
27 …read_pipe(tmp, tmp); // expected-error{{implicit declaration of function 'read_pipe' is invalid i…
28 …write_pipe(tmp, tmp); // expected-error{{implicit declaration of function 'write_pipe' is invalid …
30 …reserve_read_pipe(tmp, tmp); // expected-error{{implicit declaration of function 'reserve_read_pi…
32 …reserve_write_pipe(tmp, tmp); // expected-error{{implicit declaration of function 'reserve_write_p…
35 …work_group_reserve_read_pipe(tmp, tmp); // expected-error{{implicit declaration of function 'work…
[all …]
/external/llvm-project/clang/test/SemaObjC/
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}}
73 @property(nonatomic, readonly, direct) int direct_normal; // expected-note {{previous declaration i…
74 @property(nonatomic, readonly) int normal_direct; // expected-note {{previous declaration i…
75 @property(nonatomic, readonly, direct) int direct_direct; // expected-note {{previous declaration i…
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…
94 @property(nonatomic, readonly, direct) int direct_normal; // expected-note {{previous declaration i…
95 @property(nonatomic, readonly) int normal_direct; // expected-note {{previous declaration i…
[all …]
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 …]
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…
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' …
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…
23 - (void)notDirectInIface; // expected-note {{previous declaration is he…
24 + (void)classNotDirectInIface; // expected-note {{previous declaration is he…
29 - (void)rootExtensionDirect; // expected-note {{previous declaration is here}}
30 + (void)classRootExtensionDirect; // expected-note {{previous declaration is here}}
[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' …
/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/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/llvm-project/clang/docs/tools/
Ddump_ast_matchers.py148 def act_on_decl(declaration, comment, allowed_types): argument
155 if declaration.strip():
157 if re.match(r'^\s?(#|namespace|using)', declaration): return
164 \s*([^\s;]+)\s*;\s*$""", declaration, flags=re.X)
177 \s*([^\s;]+)\s*;\s*$""", declaration, flags=re.X)
193 \)\s*;\s*$""", declaration, flags=re.X)
217 \)\s*{\s*$""", declaration, flags=re.X)
226 raise Exception('Cannot parse "%s"' % declaration)
238 \)\s*{\s*$""", declaration, flags=re.X)
263 \)\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/llvm-project/clang/test/Modules/
Ddiagnose-missing-import.m3 // RUN: -Werror=implicit-function-declaration -fsyntax-only \
8declaration of function 'XYZLogEvent'}} expected-error {{declaration of 'XYZLogEvent' must be impo…
11 // expected-note@Inputs/diagnose-missing-import/a.h:5 {{declaration here is not visible}}
12 // expected-note@Inputs/diagnose-missing-import/a.h:5 {{declaration here is not visible}}
13 // expected-note@Inputs/diagnose-missing-import/a.h:6 {{declaration here is not visible}}
/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/llvm-project/polly/lib/External/
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
/external/llvm-project/clang/test/Sema/
Dwarn-strict-prototypes.m5 @property (nonatomic, copy) void (^noProtoBlock)(); // expected-warning {{this block declaration is…
8 - doStuff:(void (^)()) completionHandler; // expected-warning {{this block declaration is not a pro…
14 void (^block)() = // expected-warning {{this block declaration is not a prototype}}
23 void (*(^(*(^block4)()) // expected-warning {{this block declaration is not a prototype}}
24 ()) // expected-warning {{this function declaration is not a prototype}}
25 ()) // expected-warning {{this block declaration is not a prototype}}
26 (); // expected-warning {{this function declaration is not a prototype}}
/external/auto/factory/src/main/java/com/google/auto/factory/processor/
DFactoryMethodDescriptor.java33 abstract AutoFactoryDeclaration declaration(); in declaration() method in FactoryMethodDescriptor
45 return declaration().getFactoryName(); in factoryName()
48 static Builder builder(AutoFactoryDeclaration declaration) { in builder() argument
50 .declaration(checkNotNull(declaration)) in builder()
58 abstract Builder declaration(AutoFactoryDeclaration declaration); in declaration() method in FactoryMethodDescriptor.Builder
/external/angle/src/compiler/translator/tree_ops/d3d/
DWrapSwitchStatementsInBlocks.cpp68 for (TIntermDeclaration *declaration : declarations) in visitSwitch()
71 ASSERT(declaration->getSequence()->size() == 1); in visitSwitch()
74 TIntermSymbol *declaratorAsSymbol = declaration->getSequence()->at(0)->getAsSymbolNode(); in visitSwitch()
80 mMultiReplacements.emplace_back(node->getStatementList(), declaration, in visitSwitch()
86 ASSERT(declaration != statementList->back()); in visitSwitch()
94 declaration->getSequence()->at(0)->getAsBinaryNode(); in visitSwitch()
100 queueReplacementWithParent(node->getStatementList(), declaration, initAssignment, in visitSwitch()

12345678910>>...73