[cfe-commits] r100707 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Sean Hunt rideau3 at gmail.com
Wed Apr 7 15:57:35 PDT 2010


Author: coppro
Date: Wed Apr  7 17:57:35 2010
New Revision: 100707

URL: http://llvm.org/viewvc/llvm-project?rev=100707&view=rev
Log:
Updated comment to reflect changes made in the most recent draft.

Modified:
    cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=100707&r1=100706&r2=100707&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Wed Apr  7 17:57:35 2010
@@ -5051,10 +5051,8 @@
     // 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 @@
       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;





More information about the cfe-commits mailing list