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

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:40:30 PDT 2007


Author: sabre
Date: Wed Jul 11 11:40:29 2007
New Revision: 39171

URL: http://llvm.org/viewvc/llvm-project?rev=39171&view=rev
Log:
DeclSpec::TQ and TypeRef::TQ should stay in sync

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

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

==============================================================================
--- cfe/cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/cfe/trunk/include/clang/AST/Type.h Wed Jul 11 11:40:29 2007
@@ -35,11 +35,11 @@
 class TypeRef {
   uintptr_t ThePtr;
 public:
-  enum {
+  enum TQ {   // NOTE: These flags must be kept in sync with DeclSpec::TQ.
     Const    = 0x1,
-    Volatile = 0x2,
-    Restrict = 0x4,
-    CVRFlags = Const|Volatile|Restrict
+    Restrict = 0x2,
+    Volatile = 0x4,
+    CVRFlags = Const|Restrict|Volatile
   };
   
   TypeRef() : ThePtr(0) {}

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

==============================================================================
--- cfe/cfe/trunk/include/clang/Parse/DeclSpec.h (original)
+++ cfe/cfe/trunk/include/clang/Parse/DeclSpec.h Wed Jul 11 11:40:29 2007
@@ -79,7 +79,7 @@
   } TypeSpecType : 4;
   
   // type-qualifiers
-  enum TQ {
+  enum TQ {   // NOTE: These flags must be kept in sync with TypeRef::TQ.
     TQ_unspecified = 0,
     TQ_const       = 1,
     TQ_restrict    = 2,





More information about the cfe-commits mailing list