[cfe-commits] r120141 - in /cfe/trunk: include/clang/Checker/PathSensitive/MemRegion.h lib/Checker/MemRegion.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Wed Nov 24 18:07:24 PST 2010
Author: zhongxingxu
Date: Wed Nov 24 20:07:24 2010
New Revision: 120141
URL: http://llvm.org/viewvc/llvm-project?rev=120141&view=rev
Log:
Add dump method.
Modified:
cfe/trunk/include/clang/Checker/PathSensitive/MemRegion.h
cfe/trunk/lib/Checker/MemRegion.cpp
Modified: cfe/trunk/include/clang/Checker/PathSensitive/MemRegion.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Checker/PathSensitive/MemRegion.h?rev=120141&r1=120140&r2=120141&view=diff
==============================================================================
--- cfe/trunk/include/clang/Checker/PathSensitive/MemRegion.h (original)
+++ cfe/trunk/include/clang/Checker/PathSensitive/MemRegion.h Wed Nov 24 20:07:24 2010
@@ -841,6 +841,8 @@
return Ex->getType();
}
+ void dumpToStream(llvm::raw_ostream& os) const;
+
void Profile(llvm::FoldingSetNodeID &ID) const;
static bool classof(const MemRegion* R) {
Modified: cfe/trunk/lib/Checker/MemRegion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/MemRegion.cpp?rev=120141&r1=120140&r2=120141&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/MemRegion.cpp (original)
+++ cfe/trunk/lib/Checker/MemRegion.cpp Wed Nov 24 20:07:24 2010
@@ -407,6 +407,10 @@
os << "{ " << (void*) CL << " }";
}
+void CXXObjectRegion::dumpToStream(llvm::raw_ostream &os) const {
+ os << "temp_object";
+}
+
void CXXThisRegion::dumpToStream(llvm::raw_ostream &os) const {
os << "this";
}
More information about the cfe-commits
mailing list