• Home
  • Raw
  • Download

Lines Matching refs:NE

201   void checkPostStmt(const CXXNewExpr *NE, CheckerContext &C) const;
862 else if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(E)) { in ProcessZeroAllocation() local
863 if (NE->isArray()) in ProcessZeroAllocation()
864 Arg = NE->getArraySize(); in ProcessZeroAllocation()
920 static bool treatUnusedNewEscaped(const CXXNewExpr *NE) { in treatUnusedNewEscaped() argument
922 const CXXConstructExpr *ConstructE = NE->getConstructExpr(); in treatUnusedNewEscaped()
926 if (!NE->getAllocatedType()->getAsCXXRecordDecl()) in treatUnusedNewEscaped()
947 void MallocChecker::checkPostStmt(const CXXNewExpr *NE, in checkPostStmt() argument
950 if (NE->getNumPlacementArgs()) in checkPostStmt()
951 for (CXXNewExpr::const_arg_iterator I = NE->placement_arg_begin(), in checkPostStmt()
952 E = NE->placement_arg_end(); I != E; ++I) in checkPostStmt()
956 if (!isStandardNewDelete(NE->getOperatorNew(), C.getASTContext())) in checkPostStmt()
960 if (!PM.isConsumedExpr(NE) && treatUnusedNewEscaped(NE)) in checkPostStmt()
968 State = MallocUpdateRefState(C, NE, State, NE->isArray() ? AF_CXXNewArray in checkPostStmt()
970 State = ProcessZeroAllocation(C, NE, 0, State); in checkPostStmt()
1220 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(S)) in getAllocationFamily() local
1221 return NE->isArray() ? AF_CXXNewArray : AF_CXXNew; in getAllocationFamily()
1255 if (const CXXNewExpr *NE = dyn_cast<CXXNewExpr>(E)) { in printAllocDeallocName() local
1257 << getOperatorSpelling(NE->getOperatorNew()->getOverloadedOperator()) in printAllocDeallocName()