r174053 - Revert r174043 and tweak the comment wording so I'm (hopefully) not confused by it again!

Richard Smith richard-llvm at metafoo.co.uk
Thu Jan 31 03:30:17 PST 2013


Author: rsmith
Date: Thu Jan 31 05:30:17 2013
New Revision: 174053

URL: http://llvm.org/viewvc/llvm-project?rev=174053&view=rev
Log:
Revert r174043 and tweak the comment wording so I'm (hopefully) not confused by it again!

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

Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=174053&r1=174052&r2=174053&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Thu Jan 31 05:30:17 2013
@@ -783,6 +783,10 @@ public:
   ///
   /// Executing \c getUnqualifiedType() on the type \c DifferenceType will
   /// desugar until we hit the type \c Integer, which has no qualifiers on it.
+  ///
+  /// The resulting type might still be qualified if it's sugar for an array
+  /// type.  To strip qualifiers even from within a sugared array type, use
+  /// ASTContext::getUnqualifiedArrayType.
   inline QualType getUnqualifiedType() const;
 
   /// getSplitUnqualifiedType - Retrieve the unqualified variant of the
@@ -790,6 +794,10 @@ public:
   ///
   /// Like getUnqualifiedType(), but also returns the set of
   /// qualifiers that were built up.
+  ///
+  /// The resulting type might still be qualified if it's sugar for an array
+  /// type.  To strip qualifiers even from within a sugared array type, use
+  /// ASTContext::getUnqualifiedArrayType.
   inline SplitQualType getSplitUnqualifiedType() const;
 
   /// \brief Determine whether this type is more qualified than the other





More information about the cfe-commits mailing list