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

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 2079 extern const internal::VariadicDynCastAllOfMatcher<Stmt, NullStmt> nullStmt;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  434   REGISTER_MATCHER(nullStmt);
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousSemicolonCheck.cpp
   22       stmt(anyOf(ifStmt(hasThen(nullStmt().bind("semi")),
   24                  forStmt(hasBody(nullStmt().bind("semi"))),
   25                  cxxForRangeStmt(hasBody(nullStmt().bind("semi"))),
   26                  whileStmt(hasBody(nullStmt().bind("semi")))))
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
 2535       matchesWithOpenMP(Source0, stmt(nullStmt(), isOMPStructuredBlock())));
 2543       notMatchesWithOpenMP(Source1, stmt(nullStmt(), isOMPStructuredBlock())));
 2555       Source0, ompExecutableDirective(hasStructuredBlock(nullStmt()))));
 2563       Source1, ompExecutableDirective(hasStructuredBlock(nullStmt()))));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
 1495   EXPECT_TRUE(matches("void f() {int i;;}", nullStmt()));
 1496   EXPECT_TRUE(notMatches("void f() {int i;}", nullStmt()));