From 4565d4e83cec55356fe9c75929579eacced9da36 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 21 Jul 2007 05:26:43 +0000 Subject: [PATCH] better wording for an error, suggested by Neil. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40163 91177308-0d34-0410-b5e6-96231b3b80d8 --- Sema/SemaType.cpp | 2 +- include/clang/Basic/DiagnosticKinds.def | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sema/SemaType.cpp b/Sema/SemaType.cpp index c2777fd1ff..1ee0a41be3 100644 --- a/Sema/SemaType.cpp +++ b/Sema/SemaType.cpp @@ -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)'. diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def index 6a3ecf7814..2224d7e057 100644 --- a/include/clang/Basic/DiagnosticKinds.def +++ b/include/clang/Basic/DiagnosticKinds.def @@ -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, -- 2.40.0