aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-21 05:26:43 +0000
committerChris Lattner <sabre@nondot.org>2007-07-21 05:26:43 +0000
commit4565d4e83cec55356fe9c75929579eacced9da36 (patch)
tree1a43a303ac82e7185982453379d3c8de60aac5b5
parent227426661be33ff3e21f2b6b9f97971da2da044f (diff)
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
-rw-r--r--Sema/SemaType.cpp2
-rw-r--r--include/clang/Basic/DiagnosticKinds.def4
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,