aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/PathSensitive/BugReporter.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-03 05:26:14 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-03 05:26:14 +0000
commit7032f460fc9828f386056e75933da5af61e88638 (patch)
tree21b4e71304fdc8e0f9102d0942b8350199b6434a /include/clang/Analysis/PathSensitive/BugReporter.h
parent7be3f4b3aa9e7c971d6a7abcd9c89ea3f42258f3 (diff)
Have BugReporter::getCFG and BugReporter::getLiveVariables returns pointers instead of references, because they can both fail
on functions we cannot construct full CFGs for yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/BugReporter.h')
-rw-r--r--include/clang/Analysis/PathSensitive/BugReporter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h
index f608da0c2e..d1c430fc96 100644
--- a/include/clang/Analysis/PathSensitive/BugReporter.h
+++ b/include/clang/Analysis/PathSensitive/BugReporter.h
@@ -136,9 +136,9 @@ public:
virtual PathDiagnosticClient* getPathDiagnosticClient() = 0;
virtual ASTContext& getContext() = 0;
virtual SourceManager& getSourceManager() = 0;
- virtual CFG& getCFG() = 0;
+ virtual CFG* getCFG() = 0;
virtual ParentMap& getParentMap() = 0;
- virtual LiveVariables& getLiveVariables() = 0;
+ virtual LiveVariables* getLiveVariables() = 0;
};
class BugReporter {
@@ -173,7 +173,7 @@ public:
return D.getSourceManager();
}
- CFG& getCFG() {
+ CFG* getCFG() {
return D.getCFG();
}
@@ -181,7 +181,7 @@ public:
return D.getParentMap();
}
- LiveVariables& getLiveVariables() {
+ LiveVariables* getLiveVariables() {
return D.getLiveVariables();
}