Home
last modified time | relevance | path

Searched refs:hasSingleDecl (Results 1 – 16 of 16) sorted by relevance

/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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DQualifiedAutoCheck.cpp115 hasSingleDecl( in registerMatchers()
123 hasSingleDecl( in registerMatchers()
/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(
488 hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0))))
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertCheck.cpp114 hasLoopInit(declStmt(hasSingleDecl(initToZeroMatcher()))), in makeArrayLoopMatcher()
202 declStmt(hasSingleDecl(InitDeclMatcher)))), in makeIteratorLoopMatcher()
291 declStmt(hasSingleDecl(initToZeroMatcher())))), in makePseudoArrayLoopMatcher()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp456 const auto DeclStmtToNonRefToArray = declStmt(hasSingleDecl(varDecl(hasType( in findRangeLoopMutation()
487 hasSingleDecl(varDecl(hasType(hasUnqualifiedDesugaredType(referenceType( in findRangeLoopMutation()
/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/lib/StaticAnalyzer/Checkers/
H A DNumberObjectConversionChecker.cpp323 declStmt(hasSingleDecl( in checkASTCodeBody()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersInternalTest.cpp104 forStmt(hasLoopInit(declStmt(hasSingleDecl(
H A DASTMatchersTraversalTest.cpp3176 hasSingleDecl(varDecl(hasName("i"))))))))); in TEST()
3183 Code, traverse(TK_AsIs, cxxForRangeStmt(has(declStmt(hasSingleDecl( in TEST()
3206 auto M = declStmt(hasSingleDecl(varDecl(matchesName("__range")))); in TEST()
3211 auto M = declStmt(hasSingleDecl(varDecl(matchesName("__begin")))); in TEST()
3216 auto M = declStmt(hasSingleDecl(varDecl(matchesName("__end")))); in TEST()
3320 cxxForRangeStmt(has(declStmt(hasSingleDecl(varDecl(hasName("i")))))); in TEST()
3329 hasInitStatement(declStmt(hasSingleDecl(varDecl( in TEST()
3342 has(declStmt(hasSingleDecl(varDecl( in TEST()
3355 hasSingleDecl(varDecl(hasName("a"))), hasParent(cxxForRangeStmt())))); in TEST()
4682 declStmt(hasSingleDecl(varDecl(hasInitializer(anything())))); in TEST()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp147 anyOf(declStmt(hasSingleDecl( in forLoopMatcher()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DTransformerTest.cpp1270 has(declStmt(hasSingleDecl( in TEST_F()
1341 hasLoopInit(declStmt(hasSingleDecl( in TEST_F()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp352 REGISTER_MATCHER(hasSingleDecl); in RegistryMaps()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp427 hasBody(compoundStmt(has(declStmt(hasSingleDecl( in TEST_P()
450 hasAnySubstatement(declStmt(hasSingleDecl(varDecl( in TEST_P()
805 has(declStmt(hasSingleDecl(varDecl(hasName("d"))))))))); in TEST_P()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4224 AST_MATCHER_P(DeclStmt, hasSingleDecl, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument