Home
last modified time | relevance | path

Searched refs:varDecl (Results 1 – 25 of 29) sorted by relevance

12

/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp104 Code, varDecl(hasName("MyVar1"), hasDeclContext(translationUnitDecl())))); in TEST()
106 Code, varDecl(hasName("MyVar2"), hasDeclContext(translationUnitDecl())))); in TEST()
109 varDecl(hasName("MyVar2"), in TEST()
358 varDecl(hasInitializer( in TEST()
383 cxxMemberCallExpr(on(declRefExpr(to(varDecl(hasName("y")))))); in TEST()
753 varDecl(hasInitializer(parenListExpr(has(unaryOperator())))))); in TEST()
758 varDecl(hasInitializer(stmtExpr())))); in TEST()
952 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
955 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
958 varDecl(hasInitializer(implicitCastExpr())))); in TEST()
[all …]
DASTMatchersNarrowingTest.cpp30 hasArgument(0, declRefExpr(to(varDecl()))))))); in TEST()
33 hasArgument(0, declRefExpr(to(varDecl()))), in TEST()
38 hasArgument(0, declRefExpr(to(varDecl()))), in TEST()
44 hasArgument(0, declRefExpr(to(varDecl()))), in TEST()
323 cxxCatchStmt(anyOf(hasDescendant(varDecl()), isCatchAll())))); in TEST()
486 varDecl(hasName("z_float"), in TEST()
490 varDecl(hasName("z_float"), in TEST()
494 varDecl(hasName("z_char"), in TEST()
511 varDecl(hasName("z_float"), in TEST()
515 varDecl(hasName("z_float"), in TEST()
[all …]
DASTMatchersTraversalTest.cpp83 varDecl(hasDescendant(isInteger())).bind("x"))), in TEST()
105 varDecl(hasName("i"), has(isInteger())))); in TEST()
107 varDecl(hasName("i"), has(isInteger())))); in TEST()
117 varDecl(hasName("i"), hasType(qualType(has(builtinType())))))); in TEST()
120 varDecl(hasName("i"), hasType(qualType(has(pointerType())))))); in TEST()
126 has(ignoringParenImpCasts(declRefExpr(to(varDecl(hasName("i"))))))); in TEST()
137 hasDescendant(declRefExpr(to(varDecl(hasName("i")))))); in TEST()
167 varDecl(hasType(namedDecl(hasName("S")))))); in TEST()
232 varDecl(hasName("a"), in TEST()
240 varDecl(hasType(templateSpecializationType( in TEST()
[all …]
/external/clang/unittests/AST/
DASTImporterTest.cpp229 declRefExpr(hasDeclaration(varDecl(hasName("ptr"))), in TEST()
277 varDecl( in TEST()
300 varDecl( in TEST()
308 varDecl( in TEST()
375 varDecl( in TEST()
438 varDecl( in TEST()
DSourceLocationTest.cpp34 EXPECT_FALSE(Verifier.match("int i", varDecl())); in TEST()
46 EXPECT_FALSE(Verifier.match("int i;", varDecl())); in TEST()
52 EXPECT_FALSE(Verifier.match("int i;", varDecl())); in TEST()
58 EXPECT_FALSE(Verifier.match("int i;", varDecl())); in TEST()
83 EXPECT_TRUE(Verifier.match("void f(i) {}", varDecl(), Lang_C)); in TEST()
89 EXPECT_TRUE(Verifier.match("void f(i) {}", varDecl(), Lang_C)); in TEST()
148 varDecl(), Lang_C89)); in TEST()
/external/turbine/java/com/google/turbine/tree/
DPretty.java280 public Void visitVarDecl(Tree.VarDecl varDecl, Void input) { in visitVarDecl() argument
281 printVarDecl(varDecl); in visitVarDecl()
286 private void printVarDecl(Tree.VarDecl varDecl) { in printVarDecl() argument
287 printAnnos(varDecl.annos()); in printVarDecl()
288 printModifiers(varDecl.mods()); in printVarDecl()
289 varDecl.ty().accept(this, null); in printVarDecl()
290 append(' ').append(varDecl.name().value()); in printVarDecl()
291 if (varDecl.init().isPresent()) { in printVarDecl()
293 varDecl.init().get().accept(this, null); in printVarDecl()
DTree.java1267 O visitVarDecl(VarDecl varDecl, I input); in visitVarDecl() argument
/external/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp130 matches("int x;", VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST()
139 EXPECT_FALSE(VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST()
146 EXPECT_DEATH(VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST()
/external/clang/docs/
DLibASTMatchersTutorial.rst235 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl()))))
242 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl(
258 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl(
277 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl(
369 hasUnaryOperand(declRefExpr(to(varDecl(hasType(isInteger())))))))
379 varDecl(hasType(isInteger())).bind("incrementVariable"))))))
404 hasLHS(declRefExpr(to(varDecl(hasType(isInteger()))))),
442 to(varDecl(hasType(isInteger())))))),
481 hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0))))
486 to(varDecl(hasType(isInteger())).bind("incVarName")))))),
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DLambdaExprContextResolutionTest.java98 VariableDeclarator varDecl = Navigator.demandVariableDeclaration(method, "a").get(); in solveParameterOfLambdaInVarDecl() local
99 LambdaExpr lambdaExpr = (LambdaExpr) varDecl.getInitializer().get(); in solveParameterOfLambdaInVarDecl()
/external/skia/src/sksl/
DSkSLIRGenerator.cpp271 for (const auto& varDecl : decl.fVars) { in convertVarDeclarations() local
274 varDecl.fName != "sk_FragColor") { in convertVarDeclarations()
280 for (const auto& rawSize : varDecl.fSizes) { in convertVarDeclarations()
308 varDecl.fName, *type, storage)); in convertVarDeclarations()
315 if (varDecl.fValue) { in convertVarDeclarations()
316 value = this->convertExpression(*varDecl.fValue); in convertVarDeclarations()
327 if (storage == Variable::kGlobal_Storage && varDecl.fName == "sk_FragColor" && in convertVarDeclarations()
328 (*fSymbolTable)[varDecl.fName]) { in convertVarDeclarations()
330 } else if (storage == Variable::kGlobal_Storage && (*fSymbolTable)[varDecl.fName] && in convertVarDeclarations()
331 (*fSymbolTable)[varDecl.fName]->fKind == Symbol::kVariable_Kind && in convertVarDeclarations()
[all …]
DSkSLCompiler.cpp997 const auto& varDecl = (VarDeclaration&) *stmt; in simplifyStatement() local
998 if (varDecl.fVar->dead() && in simplifyStatement()
999 (!varDecl.fValue || in simplifyStatement()
1000 !varDecl.fValue->hasSideEffects())) { in simplifyStatement()
1001 if (varDecl.fValue) { in simplifyStatement()
1003 if (!b.tryRemoveExpressionBefore(iter, varDecl.fValue.get())) { in simplifyStatement()
DSkSLSPIRVCodeGenerator.cpp2679 const VarDeclaration& varDecl = (VarDeclaration&) *decl.fVars[i]; in writeGlobalVars() local
2680 const Variable* var = varDecl.fVar; in writeGlobalVars()
2732 if (varDecl.fValue) { in writeGlobalVars()
2735 SpvId value = this->writeExpression(*varDecl.fValue, fGlobalInitializersBuffer); in writeGlobalVars()
2753 VarDeclaration& varDecl = (VarDeclaration&) *stmt; in writeVarDeclarations() local
2754 const Variable* var = varDecl.fVar; in writeVarDeclarations()
2767 if (varDecl.fValue) { in writeVarDeclarations()
2768 SpvId value = this->writeExpression(*varDecl.fValue, out); in writeVarDeclarations()
/external/skqp/src/sksl/
DSkSLIRGenerator.cpp265 for (const auto& varDecl : decl.fVars) { in convertVarDeclarations() local
268 varDecl.fName != "sk_FragColor") { in convertVarDeclarations()
274 for (const auto& rawSize : varDecl.fSizes) { in convertVarDeclarations()
302 varDecl.fName, *type, storage)); in convertVarDeclarations()
309 if (varDecl.fValue) { in convertVarDeclarations()
310 value = this->convertExpression(*varDecl.fValue); in convertVarDeclarations()
321 if (storage == Variable::kGlobal_Storage && varDecl.fName == "sk_FragColor" && in convertVarDeclarations()
322 (*fSymbolTable)[varDecl.fName]) { in convertVarDeclarations()
324 } else if (storage == Variable::kGlobal_Storage && (*fSymbolTable)[varDecl.fName] && in convertVarDeclarations()
325 (*fSymbolTable)[varDecl.fName]->fKind == Symbol::kVariable_Kind && in convertVarDeclarations()
[all …]
DSkSLCompiler.cpp997 const auto& varDecl = (VarDeclaration&) *stmt; in simplifyStatement() local
998 if (varDecl.fVar->dead() && in simplifyStatement()
999 (!varDecl.fValue || in simplifyStatement()
1000 !varDecl.fValue->hasSideEffects())) { in simplifyStatement()
1001 if (varDecl.fValue) { in simplifyStatement()
1003 if (!b.tryRemoveExpressionBefore(iter, varDecl.fValue.get())) { in simplifyStatement()
DSkSLSPIRVCodeGenerator.cpp2688 const VarDeclaration& varDecl = (VarDeclaration&) *decl.fVars[i]; in writeGlobalVars() local
2689 const Variable* var = varDecl.fVar; in writeGlobalVars()
2741 if (varDecl.fValue) { in writeGlobalVars()
2744 SpvId value = this->writeExpression(*varDecl.fValue, fGlobalInitializersBuffer); in writeGlobalVars()
2762 VarDeclaration& varDecl = (VarDeclaration&) *stmt; in writeVarDeclarations() local
2763 const Variable* var = varDecl.fVar; in writeVarDeclarations()
2776 if (varDecl.fValue) { in writeVarDeclarations()
2777 SpvId value = this->writeExpression(*varDecl.fValue, out); in writeVarDeclarations()
/external/clang/unittests/Tooling/
DRefactoringCallbacksTest.cpp86 declRefExpr(to(varDecl(hasName("a"))))))))), in TEST()
/external/v8/tools/clang/rewrite_scoped_refptr/
DRewriteScopedRefptr.cpp309 on(declRefExpr(to(id("var", varDecl(hasLocalStorage()))))); in main()
364 id("var", varDecl(hasInitializer(initialized_with_temporary), in main()
/external/v8/tools/clang/empty_string/
DEmptyStringConverter.cpp93 match_finder->addMatcher(varDecl(forEach(expr(has(constructor_call)))), in SetupMatchers()
/external/deqp/modules/gles31/functional/
Des31fProgramInterfaceQueryTestCase.cpp876 …const glu::VariableDeclaration* varDecl = (path[0].isInterfaceBlock()) ? (path[1].getDeclaration()… in getExplicitLocationFromPath() local
891 else if (varDecl->storage == glu::STORAGE_UNIFORM) in getExplicitLocationFromPath()
894 return varDecl->layout.location; in getExplicitLocationFromPath()
896 else if (varDecl->storage == glu::STORAGE_IN || in getExplicitLocationFromPath()
897 varDecl->storage == glu::STORAGE_OUT || in getExplicitLocationFromPath()
898 varDecl->storage == glu::STORAGE_PATCH_IN || in getExplicitLocationFromPath()
899 varDecl->storage == glu::STORAGE_PATCH_OUT) in getExplicitLocationFromPath()
902 return getIOSubVariableLocation(path, 1, varDecl->layout.location); in getExplicitLocationFromPath()
/external/v8/tools/clang/rewrite_to_chrome_style/
DRewriteToChromeStyle.cpp1573 varDecl(hasName("value"), hasStaticStorageDuration(), isPublic(), in main()
1579 id("decl", varDecl(in_blink_namespace, unless(is_type_trait_value))); in main()
1581 auto type_trait_decl_matcher = id("decl", varDecl(isKnownTraitName())); in main()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp417 REGISTER_MATCHER(varDecl); in RegistryMaps()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp593 const VarDecl *varDecl = Dtor.getVarDecl(); in ProcessAutomaticObjDtor() local
594 QualType varType = varDecl->getType(); in ProcessAutomaticObjDtor()
597 SVal dest = state->getLValue(varDecl, Pred->getLocationContext()); in ProcessAutomaticObjDtor()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h937 const internal::VariadicDynCastAllOfMatcher<Decl, VarDecl> varDecl; variable
/external/icu/tools/srcgen/currysrc/libs/
Dorg.eclipse.jdt.core_3.14.0.v20180528-0519.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSE_.SF META-INF/ECLIPSE_ ...

12