aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/PathSensitive/ExplodedGraph.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-08-21 23:58:43 +0000
committerTed Kremenek <kremenek@apple.com>2009-08-21 23:58:43 +0000
commit2376002038c8b904acd20be754aedd1a7471be71 (patch)
tree5e32e46ec2a013889d309654a9c6821e425134df /include/clang/Analysis/PathSensitive/ExplodedGraph.h
parent54c809b19444a01444f36e93d1d28c9a5668484c (diff)
Remove 'AnalysisContext::setDecl()', as we the Decl associated with an
AnalysisContext should never change. Along the way, propagate some constness around. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/ExplodedGraph.h')
-rw-r--r--include/clang/Analysis/PathSensitive/ExplodedGraph.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/clang/Analysis/PathSensitive/ExplodedGraph.h b/include/clang/Analysis/PathSensitive/ExplodedGraph.h
index 1a25565c29..79df895d6c 100644
--- a/include/clang/Analysis/PathSensitive/ExplodedGraph.h
+++ b/include/clang/Analysis/PathSensitive/ExplodedGraph.h
@@ -226,9 +226,10 @@ protected:
/// cfg - The CFG associated with this analysis graph.
CFG& cfg;
+ // FIXME: Remove.
/// CodeDecl - The declaration containing the code being analyzed. This
/// can be a FunctionDecl or and ObjCMethodDecl.
- Decl& CodeDecl;
+ const Decl& CodeDecl;
/// Ctx - The ASTContext used to "interpret" CodeDecl.
ASTContext& Ctx;
@@ -261,7 +262,7 @@ public:
return V;
}
- ExplodedGraph(CFG& c, Decl& cd, ASTContext& ctx)
+ ExplodedGraph(CFG& c, const Decl &cd, ASTContext& ctx)
: cfg(c), CodeDecl(cd), Ctx(ctx), NumNodes(0) {}
virtual ~ExplodedGraph() {}
@@ -310,7 +311,7 @@ public:
CFG& getCFG() { return cfg; }
ASTContext& getContext() { return Ctx; }
- Decl& getCodeDecl() { return CodeDecl; }
+ // FIXME: Remove.
const Decl& getCodeDecl() const { return CodeDecl; }
const FunctionDecl* getFunctionDecl() const {