summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2010-04-07 22:57:35 +0000
committerAlexis Hunt <alercah@gmail.com>2010-04-07 22:57:35 +0000
commit079a6f7fe5c95ec1d58bd084d3db7b213b232fb9 (patch)
tree56ac2550fa4e2d6b16ad80c0cc2dab710e7f9880
parent5109d3e55d62f3db508608a17a7d5b60f943666f (diff)
downloadbcm5719-llvm-079a6f7fe5c95ec1d58bd084d3db7b213b232fb9.tar.gz
bcm5719-llvm-079a6f7fe5c95ec1d58bd084d3db7b213b232fb9.zip
Updated comment to reflect changes made in the most recent draft.
llvm-svn: 100707
-rw-r--r--clang/lib/Sema/SemaDeclCXX.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index 60b62202278..e8909d63b41 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -5051,10 +5051,8 @@ bool Sema::CheckLiteralOperatorDeclaration(FunctionDecl *FnDecl) {
// Check the first parameter
QualType T = (*Param)->getType();
- // unsigned long long int and long double are allowed, but only
- // alone.
- // We also allow any character type; their omission seems to be a bug
- // in n3000
+ // unsigned long long int, long double, and any character type are allowed
+ // as the only parameters.
if (Context.hasSameType(T, Context.UnsignedLongLongTy) ||
Context.hasSameType(T, Context.LongDoubleTy) ||
Context.hasSameType(T, Context.CharTy) ||
@@ -5066,7 +5064,7 @@ bool Sema::CheckLiteralOperatorDeclaration(FunctionDecl *FnDecl) {
goto FinishedParams;
}
- // Otherwise it must be a pointer to const; let's strip those.
+ // Otherwise it must be a pointer to const; let's strip those qualifiers.
const PointerType *PT = T->getAs<PointerType>();
if (!PT)
goto FinishedParams;
OpenPOWER on IntegriCloud