]> granicus.if.org Git - clang/commit
[analyzer] ExplodedGraph printing fixes
authorGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 17 Sep 2018 20:46:53 +0000 (20:46 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 17 Sep 2018 20:46:53 +0000 (20:46 +0000)
commitb9dbcf4f94043cb8ae723e8d818650c15ef670d7
treec3787ea77bad4cf9883064232492867a4f6aea36
parentccf123b17d438313d17c6d6309ddbbbe0a5a2894
[analyzer] ExplodedGraph printing fixes

Fixes a number of issues:

 - Global variables are not used for communication
 - Trait should be defined on a graph, not on a node
 - Defining the trait on a graph allows us to use a correct allocator,
   no longer crashing while printing trimmed graphs

Differential Revision: https://reviews.llvm.org/D52183

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342413 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
lib/StaticAnalyzer/Core/Environment.cpp
lib/StaticAnalyzer/Core/ExprEngine.cpp