[PATCH] D42672: [CFG] [analyzer] Heavier CFGConstructor elements.

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 1 21:25:22 PST 2018


NoQ updated this revision to Diff 132532.
NoQ marked an inline comment as done.
NoQ added a comment.

Cleanup construction contexts after they have been consumed. Add assertions to verify that our understanding of the context's lifespan is reasonable.

I will run the new mode on a large codebase before committing, to see if these assertions ever fail or if i'm breaking anything else.

Prettify ConstructionContext into a class with getters, write explicit constructors as pointed out in other patches.


https://reviews.llvm.org/D42672

Files:
  include/clang/Analysis/AnalysisDeclContext.h
  include/clang/Analysis/CFG.h
  include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
  include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
  lib/Analysis/AnalysisDeclContext.cpp
  lib/Analysis/CFG.cpp
  lib/Analysis/LiveVariables.cpp
  lib/StaticAnalyzer/Core/AnalysisManager.cpp
  lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
  lib/StaticAnalyzer/Core/CoreEngine.cpp
  lib/StaticAnalyzer/Core/ExprEngine.cpp
  lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
  lib/StaticAnalyzer/Core/PathDiagnostic.cpp
  test/Analysis/analyzer-config.c
  test/Analysis/analyzer-config.cpp
  test/Analysis/cfg-rich-constructors.cpp
  test/Analysis/cfg.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42672.132532.patch
Type: text/x-patch
Size: 30559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180202/7498711a/attachment-0001.bin>


More information about the cfe-commits mailing list