Home
last modified time | relevance | path

Searched refs:declStmt (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm-project/clang/unittests/Tooling/
DRefactoringCallbacksTest.cpp41 expectRewritten(Code, Expected, declStmt().bind("id"), Callback); in TEST()
48 expectRewritten(Code, Expected, declStmt().bind("id"), Callback); in TEST()
55 expectRewritten(Code, Expected, declStmt().bind("id"), Callback); in TEST()
102 expectRewritten(Code, Expected, declStmt().bind("id"), **Callback); in TEST()
DTransformerTest.cpp719 makeRule(declStmt().bind(Decl), in TEST_F()
739 makeRule(declStmt().bind(Decl), remove(statement(std::string(Decl)))), in TEST_F()
759 declStmt(containsDeclaration(0, varDecl(hasInitializer( in TEST_F()
1234 has(declStmt( in TEST_F()
1307 hasLoopInit(declStmt( in TEST_F()
/external/clang/unittests/Tooling/
DRefactoringCallbacksTest.cpp43 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
50 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
57 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseAutoCheck.cpp205 return declStmt(unless(has( in makeIteratorDeclMatcher()
214 return declStmt( in makeDeclWithNewMatcher()
232 return declStmt( in makeDeclWithCastMatcher()
253 return declStmt(unless(has(varDecl( in makeDeclWithTemplateCastMatcher()
259 return declStmt( in makeCombinedMatcher()
DLoopConvertCheck.cpp115 hasLoopInit(declStmt(hasSingleDecl(InitToZeroMatcher()))), in makeArrayLoopMatcher()
214 hasLoopInit(anyOf(declStmt(declCountIs(2), in makeIteratorLoopMatcher()
217 declStmt(hasSingleDecl(InitDeclMatcher)))), in makeIteratorLoopMatcher()
315 anyOf(declStmt(declCountIs(2), in makePseudoArrayLoopMatcher()
318 declStmt(hasSingleDecl(InitToZeroMatcher())))), in makePseudoArrayLoopMatcher()
/external/clang/unittests/AST/
DASTImporterTest.cpp275 declStmt( in TEST()
298 declStmt( in TEST()
306 declStmt( in TEST()
373 declStmt( in TEST()
436 declStmt( in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DInefficientVectorOperationCheck.cpp97 declStmt(hasSingleDecl(equalsBoundNode(std::string(VarDeclName)))) in AddMatcher()
107 declStmt(hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0)))) in AddMatcher()
DUnnecessaryCopyInitialization.cpp63 declStmt( in registerMatchers()
/external/llvm-project/clang/lib/Analysis/
DExprMutationAnalyzer.cpp450 const auto DeclStmtToNonRefToArray = declStmt(hasSingleDecl(varDecl(hasType( in findRangeLoopMutation()
478 const auto DeclStmtToNonConstIteratorContainer = declStmt( in findRangeLoopMutation()
528 hasParent(declStmt().bind("stmt")), in findReferenceMutation()
531 unless(hasParent(declStmt(hasParent( in findReferenceMutation()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DNumberObjectConversionChecker.cpp275 unless(hasConditionVariableStatement(declStmt()) in checkASTCodeBody()
323 declStmt(hasSingleDecl( in checkASTCodeBody()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DInitVariablesCheck.cpp44 optionally(hasParent(declStmt(hasParent( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DQualifiedAutoCheck.cpp113 return declStmt( in registerMatchers()
121 return declStmt( in registerMatchers()
DIsolateDeclarationCheck.cpp28 Finder->addMatcher(declStmt(onlyDeclaresVariables(), unless(isSingleDecl()), in registerMatchers()
DImplicitBoolConversionCheck.cpp289 stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DNamespaceAliaser.cpp46 "alias", match(functionDecl(hasBody(compoundStmt(has(declStmt( in createAlias()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DLoopUnrolling.cpp113 return declStmt(hasDescendant(varDecl( in assignedToRef()
144 anyOf(declStmt(hasSingleDecl( in forLoopMatcher()
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp1277 declStmt(hasSingleDecl(varDecl(hasInitializer(anything())))); in TEST()
1288 declStmt(containsDeclaration(0, MatchesInit)))); in TEST()
1290 declStmt(containsDeclaration(0, MatchesInit), in TEST()
1294 declStmt(containsDeclaration(WrongIndex, in TEST()
1332 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST()
1335 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST()
1341 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST()
1954 "if", stmt(hasDescendant(declStmt().bind("decl"))), "decl"))); in TEST()
DASTMatchersNarrowingTest.cpp1522 declStmt(declCountIs(2)))); in TEST()
1524 declStmt(declCountIs(3)))); in TEST()
1526 declStmt(declCountIs(3)))); in TEST()
1643 declStmt(isInTemplateInstantiation()))); in TEST()
1648 declStmt(isInTemplateInstantiation()))); in TEST()
1665 declStmt(isInTemplateInstantiation()))); in TEST()
1670 declStmt(isInTemplateInstantiation()))); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DPreferIsaOrDynCastInConditionalsCheck.cpp35 has(declStmt(containsDeclaration( in registerMatchers()
/external/llvm-project/clang/docs/
DLibASTMatchersTutorial.rst227 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl()))))
234 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl(
250 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl(
269 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl(
472 forStmt(hasLoopInit(declStmt(
/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(
480 forStmt(hasLoopInit(declStmt(
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp2557 auto M = cxxForRangeStmt(has(declStmt())); in TEST()
2616 auto M = cxxForRangeStmt(has(declStmt())); in TEST()
2625 hasInitStatement(declStmt(hasSingleDecl(varDecl( in TEST()
3218 declStmt(hasSingleDecl(varDecl(hasInitializer(anything())))); in TEST()
3229 declStmt(containsDeclaration(0, MatchesInit)))); in TEST()
3231 declStmt(containsDeclaration(0, MatchesInit), in TEST()
3235 declStmt(containsDeclaration(WrongIndex, in TEST()
3340 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST()
3343 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST()
3349 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST()
[all …]
DASTMatchersNarrowingTest.cpp2444 EXPECT_TRUE(matches("void f() {int i,j;}", declStmt(declCountIs(2)))); in TEST_P()
2446 notMatches("void f() {int i,j; int k;}", declStmt(declCountIs(3)))); in TEST_P()
2448 notMatches("void f() {int i,j, k, l;}", declStmt(declCountIs(3)))); in TEST_P()
2652 declStmt(isInTemplateInstantiation()))); in TEST_P()
2661 declStmt(isInTemplateInstantiation()))); in TEST_P()
2691 declStmt(isInTemplateInstantiation()))); in TEST_P()
2701 declStmt(isInTemplateInstantiation()))); in TEST_P()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DUseAfterMoveCheck.cpp319 declStmt(hasDescendant(equalsNode(MovedVariable))), in getReinits()
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DIncludeInserterTest.cpp42 Finder->addMatcher(ast_matchers::declStmt().bind("stmt"), this); in registerMatchers()

12