diff options
author | Anna Zaks <ganna@apple.com> | 2011-12-05 21:33:06 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-12-05 21:33:06 +0000 |
commit | 5c10794254ef4badc2d68a9edb9b9f688a10add6 (patch) | |
tree | 372e0b2018de91438d16c47c5453b4dc537598e9 | |
parent | 2d2999821b515e8ac39b8bd86649ed57e55282dd (diff) | |
download | bcm5719-llvm-5c10794254ef4badc2d68a9edb9b9f688a10add6.tar.gz bcm5719-llvm-5c10794254ef4badc2d68a9edb9b9f688a10add6.zip |
[analyzer] Mark ConstraintManager::canReasonAbout as protected.
llvm-svn: 145857
-rw-r--r-- | clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h | 1 | ||||
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h index 3f58a7cff36..f52ee2dc01d 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h @@ -63,6 +63,7 @@ public: virtual void EndPath(const ProgramState *state) {} +protected: /// canReasonAbout - Not all ConstraintManagers can accurately reason about /// all SVal values. This method returns true if the ConstraintManager can /// reasonably handle a given SVal value. This is typically queried by diff --git a/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h b/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h index 000af439fdd..3d04c6eed00 100644 --- a/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h +++ b/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h @@ -31,8 +31,6 @@ public: // Common implementation for the interface provided by ConstraintManager. //===------------------------------------------------------------------===// - bool canReasonAbout(SVal X) const; - const ProgramState *assume(const ProgramState *state, DefinedSVal Cond, bool Assumption); @@ -81,6 +79,8 @@ protected: // Internal implementation. //===------------------------------------------------------------------===// + bool canReasonAbout(SVal X) const; + const ProgramState *assumeAux(const ProgramState *state, Loc Cond, bool Assumption); |