[cfe-commits] r53133 - in /cfe/trunk/include/clang: AST/Expr.h Parse/DeclSpec.h

Seo Sanghyeon sanxiyn at gmail.com
Fri Jul 4 02:32:16 PDT 2008


Author: sanxiyn
Date: Fri Jul  4 04:32:15 2008
New Revision: 53133

URL: http://llvm.org/viewvc/llvm-project?rev=53133&view=rev
Log:
Fix warnings

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

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

==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Fri Jul  4 04:32:15 2008
@@ -177,10 +177,10 @@
   ConstExprIterator& operator++() { ++I; return *this; }
   ConstExprIterator operator+(size_t i) { return I+i; }
   ConstExprIterator operator-(size_t i) { return I-i; }
-  Expr * const operator[](size_t idx) { return cast<Expr>(I[idx]); }
+  Expr * operator[](size_t idx) const { return cast<Expr>(I[idx]); }
   signed operator-(const ConstExprIterator& R) const { return I - R.I; }
-  Expr * const operator*() const { return cast<Expr>(*I); }
-  Expr * const operator->() const { return cast<Expr>(*I); }
+  Expr * operator*() const { return cast<Expr>(*I); }
+  Expr * operator->() const { return cast<Expr>(*I); }
   bool operator==(const ConstExprIterator& R) const { return I == R.I; }
   bool operator!=(const ConstExprIterator& R) const { return I != R.I; }
   bool operator>(const ConstExprIterator& R) const { return I > R.I; }

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

==============================================================================
--- cfe/trunk/include/clang/Parse/DeclSpec.h (original)
+++ cfe/trunk/include/clang/Parse/DeclSpec.h Fri Jul  4 04:32:15 2008
@@ -337,7 +337,7 @@
   void setObjCDeclQualifier(ObjCDeclQualifier DQVal) 
     { objcDeclQualifier = (ObjCDeclQualifier) (objcDeclQualifier | DQVal); }
   
-  const ObjCPropertyAttributeKind getPropertyAttributes() const 
+  ObjCPropertyAttributeKind getPropertyAttributes() const 
     { return ObjCPropertyAttributeKind(PropertyAttributes); }
   void setPropertyAttributes(ObjCPropertyAttributeKind PRVal) { 
     PropertyAttributes = 





More information about the cfe-commits mailing list