|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 1221 extern const internal::VariadicDynCastAllOfMatcher<Stmt, DeclStmt> declStmt;
References
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 199 REGISTER_MATCHER(declStmt);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp 374 hasParent(declStmt().bind("stmt")),
377 unless(hasParent(declStmt(hasParent(
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp 275 unless(hasConditionVariableStatement(declStmt())
323 declStmt(hasSingleDecl(
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp 113 return declStmt(hasDescendant(varDecl(
144 anyOf(declStmt(hasSingleDecl(
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp 297 declStmt(hasDescendant(equalsNode(MovedVariable))),
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp 37 has(declStmt(containsDeclaration(
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 88 hasLoopInit(declStmt(hasSingleDecl(InitToZeroMatcher()))),
182 hasLoopInit(anyOf(declStmt(declCountIs(2),
185 declStmt(hasSingleDecl(InitDeclMatcher)))),
284 anyOf(declStmt(declCountIs(2),
287 declStmt(hasSingleDecl(InitToZeroMatcher())))),
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp 249 return declStmt(unless(has(
258 return declStmt(
276 return declStmt(
297 return declStmt(unless(has(varDecl(
303 return declStmt(
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 97 declStmt(hasSingleDecl(equalsBoundNode(VarDeclName)))
107 declStmt(hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0))))
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp 58 declStmt(
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 291 hasParent(stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))),
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp 28 Finder->addMatcher(declStmt(onlyDeclaresVariables(), unless(isSingleDecl()),
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.cpp 47 match(functionDecl(hasBody(compoundStmt(has(declStmt(
tools/clang/tools/extra/unittests/clang-tidy/IncludeInserterTest.cpp 42 Finder->addMatcher(ast_matchers::declStmt().bind("stmt"), this);
tools/clang/unittests/AST/ASTImporterTest.cpp 606 hasBody(compoundStmt(has(declStmt(hasSingleDecl(
632 hasAnySubstatement(declStmt(hasSingleDecl(
952 has(declStmt(hasSingleDecl(varDecl(hasName("d")))))))));
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp 1807 declStmt(declCountIs(2))));
1809 declStmt(declCountIs(3))));
1811 declStmt(declCountIs(3))));
1936 declStmt(isInTemplateInstantiation())));
1941 declStmt(isInTemplateInstantiation())));
1958 declStmt(isInTemplateInstantiation())));
1963 declStmt(isInTemplateInstantiation())));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp 1062 EXPECT_TRUE(notMatches("void x() {}", declStmt()));
1066 EXPECT_TRUE(matches("void x() { int a; }", declStmt()));
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp 1774 declStmt(hasSingleDecl(varDecl(hasInitializer(anything()))));
1785 declStmt(containsDeclaration(0, MatchesInit))));
1787 declStmt(containsDeclaration(0, MatchesInit),
1791 declStmt(containsDeclaration(WrongIndex,
1882 ifStmt(hasConditionVariableStatement(declStmt()))));
1885 ifStmt(hasConditionVariableStatement(declStmt()))));
1891 ifStmt(hasConditionVariableStatement(declStmt()))));
2504 "if", stmt(hasDescendant(declStmt().bind("decl"))), "decl")));
tools/clang/unittests/Tooling/RefactoringCallbacksTest.cpp 41 expectRewritten(Code, Expected, declStmt().bind("id"), Callback);
48 expectRewritten(Code, Expected, declStmt().bind("id"), Callback);
55 expectRewritten(Code, Expected, declStmt().bind("id"), Callback);
102 expectRewritten(Code, Expected, declStmt().bind("id"), **Callback);
tools/clang/unittests/Tooling/TransformerTest.cpp 412 testRule(makeRule(declStmt().bind(Decl),
431 testRule(makeRule(declStmt().bind(Decl), remove(statement(Decl))), Input,