aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h4
-rw-r--r--lib/StaticAnalyzer/Core/MemRegion.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h b/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
index f8f9e6db4d..e4d67cab0d 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
+++ b/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
@@ -884,7 +884,7 @@ public:
return R->getKind() == VarRegionKind;
}
- bool canPrintPretty() const;
+ bool canPrintPrettyAsExpr() const;
void printPrettyAsExpr(raw_ostream &os) const;
};
@@ -965,7 +965,7 @@ public:
const ObjCIvarDecl *getDecl() const;
QualType getValueType() const;
- bool canPrintPretty() const;
+ bool canPrintPrettyAsExpr() const;
void printPrettyAsExpr(raw_ostream &os) const;
void dumpToStream(raw_ostream &os) const;
diff --git a/lib/StaticAnalyzer/Core/MemRegion.cpp b/lib/StaticAnalyzer/Core/MemRegion.cpp
index 8f9f8c6dcd..cad42044b9 100644
--- a/lib/StaticAnalyzer/Core/MemRegion.cpp
+++ b/lib/StaticAnalyzer/Core/MemRegion.cpp
@@ -555,11 +555,11 @@ void StackLocalsSpaceRegion::dumpToStream(raw_ostream &os) const {
}
bool MemRegion::canPrintPretty() const {
- return false;
+ return canPrintPrettyAsExpr();
}
bool MemRegion::canPrintPrettyAsExpr() const {
- return canPrintPretty();
+ return false;
}
void MemRegion::printPretty(raw_ostream &os) const {
@@ -575,7 +575,7 @@ void MemRegion::printPrettyAsExpr(raw_ostream &os) const {
return;
}
-bool VarRegion::canPrintPretty() const {
+bool VarRegion::canPrintPrettyAsExpr() const {
return true;
}
@@ -583,7 +583,7 @@ void VarRegion::printPrettyAsExpr(raw_ostream &os) const {
os << getDecl()->getName();
}
-bool ObjCIvarRegion::canPrintPretty() const {
+bool ObjCIvarRegion::canPrintPrettyAsExpr() const {
return true;
}