aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-01-31 11:30:17 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-01-31 11:30:17 +0000
commit903ef044e5fe8efe5d06f63945f903ae81a262fd (patch)
tree18646e2d91239b9a0e96f9ae39296f4ab7f2c71d
parent8c84028ed9aa0dfd54ab729dee78f29c961d7f37 (diff)
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
-rw-r--r--include/clang/AST/Type.h8
1 files changed, 8 insertions, 0 deletions
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