| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A 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()
|
| H A D | TransformerTest.cpp | 757 makeRule(declStmt().bind(Decl), in TEST_F() 777 makeRule(declStmt().bind(Decl), remove(statement(std::string(Decl)))), in TEST_F() 797 declStmt(containsDeclaration(0, varDecl(hasInitializer( in TEST_F() 1270 has(declStmt(hasSingleDecl( in TEST_F() 1341 hasLoopInit(declStmt(hasSingleDecl( in TEST_F()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A 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()
|
| H A D | LoopConvertCheck.cpp | 114 hasLoopInit(declStmt(hasSingleDecl(initToZeroMatcher()))), in makeArrayLoopMatcher() 199 hasLoopInit(anyOf(declStmt(declCountIs(2), in makeIteratorLoopMatcher() 202 declStmt(hasSingleDecl(InitDeclMatcher)))), in makeIteratorLoopMatcher() 288 anyOf(declStmt(declCountIs(2), in makePseudoArrayLoopMatcher() 291 declStmt(hasSingleDecl(initToZeroMatcher())))), in makePseudoArrayLoopMatcher()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | IdentifierLengthCheck.cpp | 75 forStmt(hasLoopInit(declStmt(forEach(varDecl().bind("loopVar"))))), in registerMatchers() 87 varDecl(unless(anyOf(hasParent(declStmt(hasParent(forStmt()))), in registerMatchers()
|
| H A D | QualifiedAutoCheck.cpp | 113 return declStmt( in registerMatchers() 121 return declStmt( in registerMatchers()
|
| H A D | IsolateDeclarationCheck.cpp | 28 Finder->addMatcher(declStmt(onlyDeclaresVariables(), unless(isSingleDecl()), in registerMatchers()
|
| H A D | ImplicitBoolConversionCheck.cpp | 290 stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | DeclRefExprUtils.cpp | 73 match(findAll(declStmt( in constReferenceDeclRefExprs() 79 match(findAll(declStmt(has(varDecl( in constReferenceDeclRefExprs()
|
| H A D | NamespaceAliaser.cpp | 46 "alias", match(functionDecl(hasBody(compoundStmt(has(declStmt( in createAlias()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | CleanupCtadCheck.cpp | 31 declStmt(hasSingleDecl(varDecl( in CleanupCtadCheckImpl()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | InefficientVectorOperationCheck.cpp | 101 declStmt(hasSingleDecl(equalsBoundNode(std::string(VarDeclName)))) in addMatcher() 111 declStmt(hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0)))) in addMatcher()
|
| H A D | UnnecessaryCopyInitialization.cpp | 231 declStmt( in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ExprMutationAnalyzer.cpp | 456 const auto DeclStmtToNonRefToArray = declStmt(hasSingleDecl(varDecl(hasType( in findRangeLoopMutation() 486 const auto DeclStmtToNonConstIteratorContainer = declStmt( in findRangeLoopMutation() 536 hasParent(declStmt().bind("stmt")), in findReferenceMutation() 539 unless(hasParent(declStmt(hasParent( in findReferenceMutation()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | NumberObjectConversionChecker.cpp | 275 unless(hasConditionVariableStatement(declStmt()) in checkASTCodeBody() 323 declStmt(hasSingleDecl( in checkASTCodeBody()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | InitVariablesCheck.cpp | 45 optionally(hasParent(declStmt(hasParent( in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopUnrolling.cpp | 116 return declStmt(hasDescendant(varDecl( in assignedToRef() 147 anyOf(declStmt(hasSingleDecl( in forLoopMatcher()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | PreferIsaOrDynCastInConditionalsCheck.cpp | 35 has(declStmt(containsDeclaration( in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTraversalTest.cpp | 3147 auto M = cxxForRangeStmt(has(declStmt())); in TEST() 3175 Code, traverse(TK_AsIs, cxxForRangeStmt(has(declStmt( in TEST() 3329 hasInitStatement(declStmt(hasSingleDecl(varDecl( in TEST() 3342 has(declStmt(hasSingleDecl(varDecl( in TEST() 3354 auto M = cxxForRangeStmt(hasInitStatement(declStmt( in TEST() 4682 declStmt(hasSingleDecl(varDecl(hasInitializer(anything())))); in TEST() 4695 declStmt(containsDeclaration(0, MatchesInit), in TEST() 4699 declStmt(containsDeclaration(WrongIndex, in TEST() 4860 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST() 4863 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST() [all …]
|
| H A D | ASTMatchersInternalTest.cpp | 104 forStmt(hasLoopInit(declStmt(hasSingleDecl(
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | LibASTMatchersTutorial.rst | 236 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl())))) 243 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl( 259 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl( 278 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl( 487 forStmt(hasLoopInit(declStmt(
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | ConstCorrectnessCheck.cpp | 100 declStmt(containsAnyDeclaration( in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | SingleVarConstantPropagationTest.cpp | 128 anyOf(declStmt(hasSingleDecl(varDecl(hasType(isInteger()), in transfer()
|
| H A D | MultiVarConstantPropagationTest.cpp | 139 stmt(anyOf(declStmt(hasSingleDecl( in transfer()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | IdDependentBackwardBranchCheck.cpp | 34 anyOf(declStmt(hasDescendant(varDecl(hasInitializer(ThreadID)) in registerMatchers()
|