summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h1
-rw-r--r--clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h4
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);
OpenPOWER on IntegriCloud