summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/Analysis/PathSensitive/AnalysisManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/Analysis/PathSensitive/AnalysisManager.h')
-rw-r--r--clang/include/clang/Analysis/PathSensitive/AnalysisManager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/Analysis/PathSensitive/AnalysisManager.h b/clang/include/clang/Analysis/PathSensitive/AnalysisManager.h
index e7371de6562..2cff088ee0d 100644
--- a/clang/include/clang/Analysis/PathSensitive/AnalysisManager.h
+++ b/clang/include/clang/Analysis/PathSensitive/AnalysisManager.h
@@ -75,6 +75,10 @@ public:
CurrentContext = 0;
}
+
+ void setContext(Decl *D) {
+ CurrentContext = ContextMgr.getContext(D);
+ }
Decl *getCodeDecl() const {
assert (AScope == ScopeDecl);
OpenPOWER on IntegriCloud