aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-12-05 21:33:06 +0000
committerAnna Zaks <ganna@apple.com>2011-12-05 21:33:06 +0000
commiteca4e6e58170129cbdf105b2cfdb9ac2be61858e (patch)
tree224494f79fc1da78cf56f7aed210d27eeac419f4
parent084842d334fca296279262c2534f6aa31b1dfdbb (diff)
[analyzer] Mark ConstraintManager::canReasonAbout as protected.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145857 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h1
-rw-r--r--lib/StaticAnalyzer/Core/SimpleConstraintManager.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h
index 3f58a7cff3..f52ee2dc01 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h
+++ b/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/lib/StaticAnalyzer/Core/SimpleConstraintManager.h b/lib/StaticAnalyzer/Core/SimpleConstraintManager.h
index 000af439fd..3d04c6eed0 100644
--- a/lib/StaticAnalyzer/Core/SimpleConstraintManager.h
+++ b/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);