[cfe-commits] r165486 - /cfe/trunk/include/clang/AST/DeclCXX.h

Arnaud A. de Grandmaison arnaud.adegm at gmail.com
Tue Oct 9 00:09:56 PDT 2012


Author: aadg
Date: Tue Oct  9 02:09:56 2012
New Revision: 165486

URL: http://llvm.org/viewvc/llvm-project?rev=165486&view=rev
Log:
CXXMethodDecl::isConst() and CXXMethodDecl::isVolatile() can be const methods

Patch by: Laszlo Nagy

Modified:
    cfe/trunk/include/clang/AST/DeclCXX.h

Modified: cfe/trunk/include/clang/AST/DeclCXX.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclCXX.h?rev=165486&r1=165485&r2=165486&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclCXX.h (original)
+++ cfe/trunk/include/clang/AST/DeclCXX.h Tue Oct  9 02:09:56 2012
@@ -1558,8 +1558,8 @@
   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 =





More information about the cfe-commits mailing list