[cfe-commits] r57420 - /cfe/trunk/include/clang/AST/DeclBase.h

Argiris Kirtzidis akyrtzi at gmail.com
Sun Oct 12 11:45:56 PDT 2008


Author: akirtzidis
Date: Sun Oct 12 13:45:56 2008
New Revision: 57420

URL: http://llvm.org/viewvc/llvm-project?rev=57420&view=rev
Log:
More const-ness goodness.

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

Modified: cfe/trunk/include/clang/AST/DeclBase.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclBase.h?rev=57420&r1=57419&r2=57420&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/DeclBase.h (original)
+++ cfe/trunk/include/clang/AST/DeclBase.h Sun Oct 12 13:45:56 2008
@@ -316,7 +316,8 @@
     }
   }
 
-  ScopedDecl *getDeclChain() const { return DeclChain; }
+  const ScopedDecl *getDeclChain() const { return DeclChain; }
+  ScopedDecl *getDeclChain() { return DeclChain; }
   void setDeclChain(ScopedDecl *D) { DeclChain = D; }
 
   static bool classof(const Decl *D) {





More information about the cfe-commits mailing list