Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/unittests/Tooling/
H A 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()
H A DTransformerTest.cpp757 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 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()
H A DLoopConvertCheck.cpp114 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 DIdentifierLengthCheck.cpp75 forStmt(hasLoopInit(declStmt(forEach(varDecl().bind("loopVar"))))), in registerMatchers()
87 varDecl(unless(anyOf(hasParent(declStmt(hasParent(forStmt()))), in registerMatchers()
H A DQualifiedAutoCheck.cpp113 return declStmt( in registerMatchers()
121 return declStmt( in registerMatchers()
H A DIsolateDeclarationCheck.cpp28 Finder->addMatcher(declStmt(onlyDeclaresVariables(), unless(isSingleDecl()), in registerMatchers()
H A DImplicitBoolConversionCheck.cpp290 stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DDeclRefExprUtils.cpp73 match(findAll(declStmt( in constReferenceDeclRefExprs()
79 match(findAll(declStmt(has(varDecl( in constReferenceDeclRefExprs()
H A DNamespaceAliaser.cpp46 "alias", match(functionDecl(hasBody(compoundStmt(has(declStmt( in createAlias()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DCleanupCtadCheck.cpp31 declStmt(hasSingleDecl(varDecl( in CleanupCtadCheckImpl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.cpp101 declStmt(hasSingleDecl(equalsBoundNode(std::string(VarDeclName)))) in addMatcher()
111 declStmt(hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0)))) in addMatcher()
H A DUnnecessaryCopyInitialization.cpp231 declStmt( in registerMatchers()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp456 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 DNumberObjectConversionChecker.cpp275 unless(hasConditionVariableStatement(declStmt()) in checkASTCodeBody()
323 declStmt(hasSingleDecl( in checkASTCodeBody()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DInitVariablesCheck.cpp45 optionally(hasParent(declStmt(hasParent( in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp116 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 DPreferIsaOrDynCastInConditionalsCheck.cpp35 has(declStmt(containsDeclaration( in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp3147 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 DASTMatchersInternalTest.cpp104 forStmt(hasLoopInit(declStmt(hasSingleDecl(
/llvm-project-15.0.7/clang/docs/
H A DLibASTMatchersTutorial.rst236 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 DConstCorrectnessCheck.cpp100 declStmt(containsAnyDeclaration( in registerMatchers()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DSingleVarConstantPropagationTest.cpp128 anyOf(declStmt(hasSingleDecl(varDecl(hasType(isInteger()), in transfer()
H A DMultiVarConstantPropagationTest.cpp139 stmt(anyOf(declStmt(hasSingleDecl( in transfer()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DIdDependentBackwardBranchCheck.cpp34 anyOf(declStmt(hasDescendant(varDecl(hasInitializer(ThreadID)) in registerMatchers()

12