summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>2012-10-09 07:09:56 +0000
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>2012-10-09 07:09:56 +0000
commit3b95e4da76df2084315368dca15a31a99fd3150e (patch)
tree8beb30484acfdf223104bb5921c571f8a330be9a
parentbcd425b094f25746f0f40d510b7946baf1292590 (diff)
downloadbcm5719-llvm-3b95e4da76df2084315368dca15a31a99fd3150e.tar.gz
bcm5719-llvm-3b95e4da76df2084315368dca15a31a99fd3150e.zip
CXXMethodDecl::isConst() and CXXMethodDecl::isVolatile() can be const methods
Patch by: Laszlo Nagy llvm-svn: 165486
-rw-r--r--clang/include/clang/AST/DeclCXX.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/AST/DeclCXX.h b/clang/include/clang/AST/DeclCXX.h
index 26f91dd42db..e06246c87d5 100644
--- a/clang/include/clang/AST/DeclCXX.h
+++ b/clang/include/clang/AST/DeclCXX.h
@@ -1558,8 +1558,8 @@ public:
bool isStatic() const { return getStorageClass() == SC_Static; }
bool isInstance() const { return !isStatic(); }
- bool isConst() { return getType()->castAs<FunctionType>()->isConst(); }
- bool isVolatile() { return getType()->castAs<FunctionType>()->isVolatile(); }
+ bool isConst() const { return getType()->castAs<FunctionType>()->isConst(); }
+ bool isVolatile() const { return getType()->castAs<FunctionType>()->isVolatile(); }
bool isVirtual() const {
CXXMethodDecl *CD =
OpenPOWER on IntegriCloud