]> granicus.if.org Git - clang/commitdiff
better wording for an error, suggested by Neil.
authorChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2007 05:26:43 +0000 (05:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2007 05:26:43 +0000 (05:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40163 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaType.cpp
include/clang/Basic/DiagnosticKinds.def

index c2777fd1ffabac80fe76ad14066454513cd37df6..1ee0a41be3c93f5ea1e7dbe9b11dba3cfe245700 100644 (file)
@@ -208,7 +208,7 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) {
             } 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)'.
index 6a3ecf7814cb0ba57250a8c8939b7f5e64704d40..2224d7e057463c4d6dde4440255fe3378668ce41 100644 (file)
@@ -445,8 +445,8 @@ DIAG(err_typecheck_ocu_vector_not_typedef, ERROR,
      "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,