[PATCH] Enhance CFG to model C++ new more precisely

Karthik Bhat kv.bhat at samsung.com
Tue Dec 17 04:29:33 PST 2013


Hi jordan_rose,

Hi Jordan,
I'm trying to model Constructor call corresponding to a call to new for a RecordType as per discussion at PR12014.
I'm able to emit the CFG Element as discussed in the PR but i'm still trying to figure out how to handle VisitCXXNewAllocatorCall. 
I assume i need to handle and move most of the things handled in VisitCXXNewExpr such as creating a symbolic expression which should be later used in VisitCXXConstructExpr.
It would be great if you could guide on how the VisitCXXNewAllocatorCall should be handled.

Thanks
Karthik Bhat

http://llvm-reviews.chandlerc.com/D2423

Files:
  test/Analysis/cfg.cpp
  lib/Analysis/CFG.cpp
  lib/StaticAnalyzer/Core/ExprEngine.cpp
  lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
  lib/StaticAnalyzer/Core/PathDiagnostic.cpp
  include/clang/Analysis/CFG.h
  include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2423.1.patch
Type: text/x-patch
Size: 10521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131217/281d0d82/attachment.bin>


More information about the cfe-commits mailing list