From: Richard Smith Date: Thu, 31 Jan 2013 11:30:17 +0000 (+0000) Subject: Revert r174043 and tweak the comment wording so I'm (hopefully) not confused by it... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=903ef044e5fe8efe5d06f63945f903ae81a262fd;p=clang Revert r174043 and tweak the comment wording so I'm (hopefully) not confused by it again! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174053 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 188dfdcce5..1469746d43 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -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