summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis
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
commit8be65a792ff56526e8937340ab620f75524b1de7 (patch)
treebb2fb31ccf8f55d2c5256a1fa2a0e0145b5a9b58 /clang/test/Analysis
parenta1a9ba11b78509dd11a2b69dae0c6049118f245c (diff)
downloadbcm5719-llvm-8be65a792ff56526e8937340ab620f75524b1de7.tar.gz
bcm5719-llvm-8be65a792ff56526e8937340ab620f75524b1de7.zip
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 llvm-svn: 120094
Diffstat (limited to 'clang/test/Analysis')
-rw-r--r--clang/test/Analysis/method-call.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/method-call.cpp b/clang/test/Analysis/method-call.cpp
index a766da9aae2..6cfbda895de 100644
--- a/clang/test/Analysis/method-call.cpp
+++ b/clang/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() {
OpenPOWER on IntegriCloud