[cfe-commits] r40163 - in /cfe/trunk: Sema/SemaType.cpp include/clang/Basic/DiagnosticKinds.def

Chris Lattner sabre at nondot.org
Fri Jul 20 22:26:43 PDT 2007


Author: lattner
Date: Sat Jul 21 00:26:43 2007
New Revision: 40163

URL: http://llvm.org/viewvc/llvm-project?rev=40163&view=rev
Log:
better wording for an error, suggested by Neil.

Modified:
    cfe/trunk/Sema/SemaType.cpp
    cfe/trunk/include/clang/Basic/DiagnosticKinds.def

Modified: cfe/trunk/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaType.cpp?rev=40163&r1=40162&r2=40163&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaType.cpp (original)
+++ cfe/trunk/Sema/SemaType.cpp Sat Jul 21 00:26:43 2007
@@ -208,7 +208,7 @@
             } else if (FTI.ArgInfo[i].Ident) {
               // Reject, but continue to parse 'int(void abc)'.
               Diag(FTI.ArgInfo[i].IdentLoc,
-                   diag::err_void_param_with_identifier);
+                   diag::err_param_with_void_type);
               ArgTy = Context.IntTy;
             } else {
               // Reject, but continue to parse 'float(const void)'.

Modified: cfe/trunk/include/clang/Basic/DiagnosticKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticKinds.def?rev=40163&r1=40162&r2=40163&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticKinds.def (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticKinds.def Sat Jul 21 00:26:43 2007
@@ -445,8 +445,8 @@
      "ocu_vector_type only applies to types, not variables")
 
 // Function Parameter Semantic Analysis.
-DIAG(err_void_param_with_identifier, ERROR,
-     "void argument may not have a name")
+DIAG(err_param_with_void_type, ERROR,
+     "argument may not have 'void' type")
 DIAG(err_void_only_param, ERROR,
      "'void' must be the first and only parameter if specified")
 DIAG(err_void_param_qualified, ERROR,





More information about the cfe-commits mailing list