summaryrefslogtreecommitdiffstats
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
commit469bc7b9c8875acba5757fb607da51ddf85e3e90 (patch)
tree4c07f52fbe296a49ae43fed7b3e57bbe6f02f83b
parent995a3e731d10bcd29705d00375e2bb9517d5c987 (diff)
downloadbcm5719-llvm-469bc7b9c8875acba5757fb607da51ddf85e3e90.tar.gz
bcm5719-llvm-469bc7b9c8875acba5757fb607da51ddf85e3e90.zip
Revert r174043 and tweak the comment wording so I'm (hopefully) not confused by it again!
llvm-svn: 174053
-rw-r--r--clang/include/clang/AST/Type.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index 188dfdcce5f..1469746d433 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/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
OpenPOWER on IntegriCloud