Lines Matching refs:NE
201 void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const;
862 else if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(E)) {
863 if (NE->isArray())
864 Arg = NE->getArraySize();
924 static bool treatUnusedNewEscaped(const CXXNewExpr *NE) {
926 const CXXConstructExpr *ConstructE = NE->getConstructExpr();
930 if (!NE->getAllocatedType()->getAsCXXRecordDecl())
951 void MallocChecker::checkPostStmt(const CXXNewExpr *NE,
954 if (NE->getNumPlacementArgs())
955 for (CXXNewExpr::const_arg_iterator I = NE->placement_arg_begin(),
956 E = NE->placement_arg_end(); I != E; ++I)
960 if (!isStandardNewDelete(NE->getOperatorNew(), C.getASTContext()))
964 if (!PM.isConsumedExpr(NE) && treatUnusedNewEscaped(NE))
972 State = MallocUpdateRefState(C, NE, State, NE->isArray() ? AF_CXXNewArray
974 State = ProcessZeroAllocation(C, NE, 0, State);
1221 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(S))
1222 return NE->isArray() ? AF_CXXNewArray : AF_CXXNew;
1256 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(E)) {
1258 << getOperatorSpelling(NE->getOperatorNew()->getOverloadedOperator())