Home
last modified time | relevance | path

Searched refs:AllocExpr (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMisplacedPointerArithmeticInAllocCheck.cpp65 const Expr *AllocExpr = PtrArith->getLHS()->IgnoreParenCasts(); in check() local
68 if (const auto *Call = dyn_cast<CallExpr>(AllocExpr)) { in check()
75 const auto *New = cast<CXXNewExpr>(AllocExpr); in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DMallocChecker.cpp712 const Expr *AllocExpr = nullptr) const;
2033 const Expr *AllocExpr = cast<Expr>(RsBase->getStmt()); in FreeMemAux() local
2035 Family, AllocExpr); in FreeMemAux()
2306 const Expr *AllocExpr = cast<Expr>(RS->getStmt()); in HandleMismatchedDealloc() local
2320 if (printMemFnName(AllocOs, C, AllocExpr)) in HandleMismatchedDealloc()
2324 if (printMemFnName(AllocOs, C, AllocExpr)) in HandleMismatchedDealloc()
2346 const Expr *AllocExpr) const { in HandleOffsetFree()
2389 if (AllocExpr && printMemFnName(AllocNameOs, C, AllocExpr)) in HandleOffsetFree()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp5791 if (const CXXNewExpr *AllocExpr = E.castAs<CFGNewAllocator>().getAllocatorExpr()) in print_elem() local
5792 AllocExpr->getType().print(OS, PrintingPolicy(Helper.getLangOpts())); in print_elem()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp754 const Expr *AllocExpr = nullptr; member
765 if (auto *NE = dyn_cast<CXXNewExpr>(AllocExpr)) in getKind()
767 assert(isa<CallExpr>(AllocExpr)); in getKind()
1902 Result.first->second.AllocExpr = E; in createHeapAlloc()
2099 Info.Note((*Alloc)->AllocExpr->getExprLoc(), in NoteLValueLocation()
2462 Info.CCEDiag(Info.HeapAllocs.begin()->second.AllocExpr, in CheckMemoryLeaks()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp12204 const Expr *AllocExpr; in getAddressOfLocalVariable() member in CGOpenMPRuntime::getAddressOfLocalVariable::OMPAllocateCleanupTy
12209 const Expr *AllocExpr) in getAddressOfLocalVariable() argument
12211 AllocExpr(AllocExpr) {} in getAddressOfLocalVariable()
12220 llvm::Value *AllocVal = getAllocatorVal(CGF, AllocExpr); in getAddressOfLocalVariable()