[PATCH] D15031: CFG: Add CFGElement for automatic variables that leave the scope

Matthias Gehre via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 7 15:03:01 PDT 2016


mgehre updated this revision to Diff 52959.
mgehre added a comment.

Update for review comments

- Change name from ObjLeavesScope to LifetimeEnds
- Make sure that trivially destructible objects end their lifetime after non-trivial destructible objects
- Add test
- Add analyzer option to enable LifetimeEnds CFG entries (disabled by default)

Note that AddImplicitDtors is mutally exclusive with AddLifetime (may be changed by a later patch)


http://reviews.llvm.org/D15031

Files:
  include/clang/Analysis/AnalysisContext.h
  include/clang/Analysis/CFG.h
  include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
  lib/Analysis/AnalysisDeclContext.cpp
  lib/Analysis/CFG.cpp
  lib/StaticAnalyzer/Core/AnalysisManager.cpp
  lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
  lib/StaticAnalyzer/Core/ExprEngine.cpp
  lib/StaticAnalyzer/Core/PathDiagnostic.cpp
  test/Analysis/analyzer-config.c
  test/Analysis/analyzer-config.cpp
  test/Analysis/lifetime-cfg-output.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15031.52959.patch
Type: text/x-patch
Size: 48798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160407/febcb794/attachment-0001.bin>


More information about the cfe-commits mailing list