diff options
author | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | 2012-10-09 07:09:56 +0000 |
---|---|---|
committer | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | 2012-10-09 07:09:56 +0000 |
commit | de7c0017d3f28a2e099244a154e89858bc34067b (patch) | |
tree | f51e90ad7c5ec198115f8dd84ca86f7aa741252f | |
parent | 21c3607282550779c9ae5fe784928597807fd110 (diff) |
CXXMethodDecl::isConst() and CXXMethodDecl::isVolatile() can be const methods
Patch by: Laszlo Nagy
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165486 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/DeclCXX.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index 26f91dd42d..e06246c87d 100644 --- a/include/clang/AST/DeclCXX.h +++ b/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 = |