/external/llvm-project/clang/unittests/Tooling/ |
D | RefactoringCallbacksTest.cpp | 41 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()
|
D | TransformerTest.cpp | 719 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/ |
D | RefactoringCallbacksTest.cpp | 43 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/ |
D | UseAutoCheck.cpp | 205 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()
|
D | LoopConvertCheck.cpp | 115 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/ |
D | ASTImporterTest.cpp | 275 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/ |
D | InefficientVectorOperationCheck.cpp | 97 declStmt(hasSingleDecl(equalsBoundNode(std::string(VarDeclName)))) in AddMatcher() 107 declStmt(hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0)))) in AddMatcher()
|
D | UnnecessaryCopyInitialization.cpp | 63 declStmt( in registerMatchers()
|
/external/llvm-project/clang/lib/Analysis/ |
D | ExprMutationAnalyzer.cpp | 450 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/ |
D | NumberObjectConversionChecker.cpp | 275 unless(hasConditionVariableStatement(declStmt()) in checkASTCodeBody() 323 declStmt(hasSingleDecl( in checkASTCodeBody()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | InitVariablesCheck.cpp | 44 optionally(hasParent(declStmt(hasParent( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | QualifiedAutoCheck.cpp | 113 return declStmt( in registerMatchers() 121 return declStmt( in registerMatchers()
|
D | IsolateDeclarationCheck.cpp | 28 Finder->addMatcher(declStmt(onlyDeclaresVariables(), unless(isSingleDecl()), in registerMatchers()
|
D | ImplicitBoolConversionCheck.cpp | 289 stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | NamespaceAliaser.cpp | 46 "alias", match(functionDecl(hasBody(compoundStmt(has(declStmt( in createAlias()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | LoopUnrolling.cpp | 113 return declStmt(hasDescendant(varDecl( in assignedToRef() 144 anyOf(declStmt(hasSingleDecl( in forLoopMatcher()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 1277 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()
|
D | ASTMatchersNarrowingTest.cpp | 1522 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/ |
D | PreferIsaOrDynCastInConditionalsCheck.cpp | 35 has(declStmt(containsDeclaration( in registerMatchers()
|
/external/llvm-project/clang/docs/ |
D | LibASTMatchersTutorial.rst | 227 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/ |
D | LibASTMatchersTutorial.rst | 235 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/ |
D | ASTMatchersTraversalTest.cpp | 2557 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 …]
|
D | ASTMatchersNarrowingTest.cpp | 2444 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/ |
D | UseAfterMoveCheck.cpp | 319 declStmt(hasDescendant(equalsNode(MovedVariable))), in getReinits()
|
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/ |
D | IncludeInserterTest.cpp | 42 Finder->addMatcher(ast_matchers::declStmt().bind("stmt"), this); in registerMatchers()
|