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

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  271   REGISTER_MATCHER(hasElse);
tools/clang/tools/extra/clang-tidy/bugprone/BranchCloneCheck.cpp
   63              hasParent(stmt(unless(ifStmt(hasElse(equalsBoundNode("if")))))),
   64              hasElse(stmt().bind("else"))),
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
   23                         unless(hasElse(stmt()))),
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
   70       ifStmt(eachOf(hasThen(MatchedCallExpr), hasElse(MatchedCallExpr)));
tools/clang/tools/extra/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp
   45     Finder->addMatcher(ifStmt(hasParent(ifStmt()), unless(hasElse(anything())))
tools/clang/tools/extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
   37                  hasElse(stmt().bind("else")))
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.cpp
  109   Finder->addMatcher(ifStmt(hasElse(stmt())).bind("if"), this);
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
  448                               hasElse(returnsBool(!Value)))
  455                               hasElse(returnsBool(!Value)))
  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
   36              hasElse(stmt().bind(E))),
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
 1094                       ifStmt(hasElse(cxxBoolLiteral(equals(true))))));
 1096                          ifStmt(hasElse(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))));
tools/clang/unittests/Tooling/TransformerTest.cpp
  453                            hasThen(stmt().bind(T)), hasElse(stmt().bind(E))),