[cfe-commits] r49080 - /cfe/trunk/lib/AST/ASTContext.cpp

Chris Lattner sabre at nondot.org
Tue Apr 1 23:06:35 PDT 2008


Author: lattner
Date: Wed Apr  2 01:06:35 2008
New Revision: 49080

URL: http://llvm.org/viewvc/llvm-project?rev=49080&view=rev
Log:
Add a citation.

Modified:
    cfe/trunk/lib/AST/ASTContext.cpp

Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=49080&r1=49079&r2=49080&view=diff

==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Wed Apr  2 01:06:35 2008
@@ -983,7 +983,9 @@
     PointerQuals = PrettyArrayType->getIndexTypeQualifier();
   }
   
-  // Apply any CVR qualifiers from the array type.
+  // Apply any CVR qualifiers from the array type to the element type.  This
+  // implements C99 6.7.3p8: "If the specification of an array type includes
+  // any type qualifiers, the element type is so qualified, not the array type."
   EltTy = EltTy.getQualifiedType(ArrayQuals | EltTy.getCVRQualifiers());
 
   QualType PtrTy = getPointerType(EltTy);





More information about the cfe-commits mailing list