]> granicus.if.org Git - clang/commitdiff
Updated comment to reflect changes made in the most recent draft.
authorSean Hunt <rideau3@gmail.com>
Wed, 7 Apr 2010 22:57:35 +0000 (22:57 +0000)
committerSean Hunt <rideau3@gmail.com>
Wed, 7 Apr 2010 22:57:35 +0000 (22:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100707 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index 60b62202278d77feebdbe5e2913a5b4ab5a82ec8..e8909d63b4196a396b0796c54d96fa4696e45619 100644 (file)
@@ -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;