From de7c0017d3f28a2e099244a154e89858bc34067b Mon Sep 17 00:00:00 2001 From: "Arnaud A. de Grandmaison" Date: Tue, 9 Oct 2012 07:09:56 +0000 Subject: [PATCH] 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 --- include/clang/AST/DeclCXX.h | 4 ++-- 1 file 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()->isConst(); } - bool isVolatile() { return getType()->castAs()->isVolatile(); } + bool isConst() const { return getType()->castAs()->isConst(); } + bool isVolatile() const { return getType()->castAs()->isVolatile(); } bool isVirtual() const { CXXMethodDecl *CD = -- 2.50.1