Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
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()
/external/clang/lib/StaticAnalyzer/Checkers/
DMallocChecker.cpp377 const Expr *AllocExpr = nullptr) const;
1424 const Expr *AllocExpr = cast<Expr>(RsBase->getStmt()); in FreeMemAux() local
1426 AllocExpr); in FreeMemAux()
1689 const Expr *AllocExpr = cast<Expr>(RS->getStmt()); in ReportMismatchedDealloc() local
1703 if (printAllocDeallocName(AllocOs, C, AllocExpr)) in ReportMismatchedDealloc()
1707 if (printAllocDeallocName(AllocOs, C, AllocExpr)) in ReportMismatchedDealloc()
1727 const Expr *AllocExpr) const { in ReportOffsetFree()
1735 getCheckIfTracked(C, AllocExpr); in ReportOffsetFree()
1771 if (AllocExpr && printAllocDeallocName(AllocNameOs, C, AllocExpr)) in ReportOffsetFree()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DMallocChecker.cpp701 const Expr *AllocExpr = nullptr) const;
1884 const Expr *AllocExpr = cast<Expr>(RsBase->getStmt()); in FreeMemAux() local
1886 Family, AllocExpr); in FreeMemAux()
2157 const Expr *AllocExpr = cast<Expr>(RS->getStmt()); in HandleMismatchedDealloc() local
2171 if (printMemFnName(AllocOs, C, AllocExpr)) in HandleMismatchedDealloc()
2175 if (printMemFnName(AllocOs, C, AllocExpr)) in HandleMismatchedDealloc()
2197 const Expr *AllocExpr) const { in HandleOffsetFree()
2240 if (AllocExpr && printMemFnName(AllocNameOs, C, AllocExpr)) in HandleOffsetFree()
/external/clang/lib/Analysis/
DCFG.cpp4302 if (const CXXNewExpr *AllocExpr = NE->getAllocatorExpr()) in print_elem() local
4303 AllocExpr->getType().print(OS, PrintingPolicy(Helper.getLangOpts())); in print_elem()
/external/llvm-project/clang/lib/Analysis/
DCFG.cpp5564 if (const CXXNewExpr *AllocExpr = E.castAs<CFGNewAllocator>().getAllocatorExpr()) in print_elem() local
5565 AllocExpr->getType().print(OS, PrintingPolicy(Helper.getLangOpts())); in print_elem()
/external/llvm-project/clang/lib/AST/
DExprConstant.cpp751 const Expr *AllocExpr = nullptr; member
762 if (auto *NE = dyn_cast<CXXNewExpr>(AllocExpr)) in getKind()
764 assert(isa<CallExpr>(AllocExpr)); in getKind()
1898 Result.first->second.AllocExpr = E; in createHeapAlloc()
2089 Info.Note((*Alloc)->AllocExpr->getExprLoc(), in NoteLValueLocation()
2439 Info.CCEDiag(Info.HeapAllocs.begin()->second.AllocExpr, in CheckMemoryLeaks()