aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/method-call.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-11-24 13:48:50 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-11-24 13:48:50 +0000
commit32303020d0f1a21cbcab65ae0c69a4218dc8f0fb (patch)
treee1ba6f7eece0f5ac2a9d8f02a5453f4e5e506914 /test/Analysis/method-call.cpp
parentd706434b0231c76fd9acf30060646a7aa8f69aef (diff)
When getting CXXThisRegion from CXXMethodDecl, use the qualifiers. This is
to be consistent with the type of 'this' expr in the method. 此行及以下内容将会被忽略-- M test/Analysis/method-call.cpp M include/clang/Checker/PathSensitive/GRExprEngine.h M lib/Checker/GRCXXExprEngine.cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/method-call.cpp')
-rw-r--r--test/Analysis/method-call.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/method-call.cpp b/test/Analysis/method-call.cpp
index a766da9aae..6cfbda895d 100644
--- a/test/Analysis/method-call.cpp
+++ b/test/Analysis/method-call.cpp
@@ -3,7 +3,7 @@
struct A {
int x;
A(int a) { x = a; }
- int getx() { return x; }
+ int getx() const { return x; }
};
void f1() {