[cfe-commits] r52767 - /cfe/trunk/include/clang/Parse/DeclSpec.h

Chris Lattner sabre at nondot.org
Wed Jun 25 23:07:55 PDT 2008


Author: lattner
Date: Thu Jun 26 01:07:52 2008
New Revision: 52767

URL: http://llvm.org/viewvc/llvm-project?rev=52767&view=rev
Log:
fix const correctness of accessor.

Modified:
    cfe/trunk/include/clang/Parse/DeclSpec.h

Modified: cfe/trunk/include/clang/Parse/DeclSpec.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/DeclSpec.h?rev=52767&r1=52766&r2=52767&view=diff

==============================================================================
--- cfe/trunk/include/clang/Parse/DeclSpec.h (original)
+++ cfe/trunk/include/clang/Parse/DeclSpec.h Thu Jun 26 01:07:52 2008
@@ -661,7 +661,8 @@
     assert((AttrList == 0) && "Declarator already has an attribute list");
     AttrList = alist;
   }
-  AttributeList *getAttributes() const { return AttrList; }
+  const AttributeList *getAttributes() const { return AttrList; }
+  AttributeList *getAttributes() { return AttrList; }
   
   void setInvalidType(bool flag) { InvalidType = flag; }
   bool getInvalidType() const { return InvalidType; }





More information about the cfe-commits mailing list