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

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 1730 extern const internal::VariadicDynCastAllOfMatcher<Stmt, CXXNewExpr> cxxNewExpr;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  183   REGISTER_MATCHER(cxxNewExpr);
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedOperatorInStrlenInAllocCheck.cpp
   69       cxxNewExpr(isArray(), hasArraySize(BadArg)).bind("Alloc"), this);
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
  633       cxxNewExpr(hasArraySize(expr().bind(DestMallocExprName))));
tools/clang/tools/extra/clang-tidy/cert/StaticObjectExceptionCheck.cpp
   32                     hasDescendant(cxxNewExpr(hasDeclaration(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
   66       anyOf(cxxNewExpr(),
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
   92                           cxxNewExpr(hasType(pointsTo(qualType(hasCanonicalType(
  104           hasArgument(0, cxxNewExpr(CanCallCtor).bind(NewExpression)),
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp
  260                  unless(hasInitializer(ignoringParenImpCasts(cxxNewExpr()))),
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.cpp
   75   auto NewExprAsArgument = hasAnyArgument(ignoringImplicit(cxxNewExpr()));
tools/clang/unittests/AST/SourceLocationTest.cpp
   94   EXPECT_TRUE(Verifier.match("void f() { new int[10]; }", cxxNewExpr()));
  100   EXPECT_TRUE(Verifier.match("void f() { new int(); }", cxxNewExpr()));
  313   EXPECT_TRUE(Verifier.match("int* a = new (int);", cxxNewExpr()));
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
 2423                       cxxNewExpr(isArray())));
 2428                       cxxNewExpr(hasArraySize(integerLiteral(equals(10))))));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
  667   StatementMatcher New = cxxNewExpr();
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
  267               cxxNewExpr(hasDeclaration(functionDecl(parameterCountIs(1))))));