reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  314   REGISTER_MATCHER(hasThen);
tools/clang/tools/extra/clang-tidy/bugprone/MultipleStatementMacroCheck.cpp
   61       stmt(anyOf(ifStmt(hasThen(Inner)), ifStmt(hasElse(Inner)).bind("else"),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousSemicolonCheck.cpp
   22       stmt(anyOf(ifStmt(hasThen(nullStmt().bind("semi")),
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
   70       ifStmt(eachOf(hasThen(MatchedCallExpr), hasElse(MatchedCallExpr)));
tools/clang/tools/extra/clang-tidy/readability/DeleteNullPointerCheck.cpp
   44              hasThen(anyOf(
tools/clang/tools/extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
   35                  hasThen(stmt(anyOf(InterruptsControlFlow,
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
  447                               hasThen(returnsBool(Value, ThenLiteralId)),
  454                               hasThen(returnsBool(Value, ThenLiteralId)),
  478     Finder->addMatcher(ifStmt(hasThen(Then), hasElse(Else)).bind(Id), this);
  481         ifStmt(unless(hasParent(ifStmt())), hasThen(Then), hasElse(Else))
  492               ifStmt(hasThen(returnsBool(Value)), unless(hasElse(stmt())))),
tools/clang/tools/extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp
   35       ifStmt(hasCondition(expr().bind(C)), hasThen(stmt().bind(T)),
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
 1090                       ifStmt(hasThen(cxxBoolLiteral(equals(true))))));
 1092                          ifStmt(hasThen(cxxBoolLiteral(equals(true))))));
tools/clang/unittests/Tooling/StencilTest.cpp
  129                       hasThen(stmt().bind(Then)), hasElse(stmt().bind(Else))));
  148                       hasThen(stmt().bind(Then)), hasElse(stmt().bind(Else))));
  165                                              hasThen(stmt().bind("a2"))));
tools/clang/unittests/Tooling/TransformerTest.cpp
  453                            hasThen(stmt().bind(T)), hasElse(stmt().bind(E))),