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 188dfdc..1469746 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -783,6 +783,10 @@
///
/// 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 @@
///
/// 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