]> granicus.if.org Git - clang/commit
[CFG] [analyzer] NFC: Allow more complicated construction contexts.
authorArtem Dergachev <artem.dergachev@gmail.com>
Fri, 23 Feb 2018 22:20:39 +0000 (22:20 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Fri, 23 Feb 2018 22:20:39 +0000 (22:20 +0000)
commit491b0d6736475fbb9509877edcc18051272b30bd
tree7f94fe384e710f95db05534f675093bc5c529259
parent7c10621a2b86d359210a4c1ec0af5900ed9eba58
[CFG] [analyzer] NFC: Allow more complicated construction contexts.

ConstructionContexts introduced in D42672 are an additional piece of information
included with CFGConstructor elements that help the client of the CFG (such as
the Static Analyzer) understand where the newly constructed object is stored.

The patch refactors the ConstructionContext class to prepare for including
multi-layered contexts that are being constructed gradually, layer-by-layer,
as the AST is traversed.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325966 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/CFG.h
lib/Analysis/CFG.cpp