summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-27 17:15:01 +0000
committerChris Lattner <sabre@nondot.org>2009-02-27 17:15:01 +0000
commit7094c15d7e44cd53530752387399d984cf3f4a05 (patch)
treec8f921220d5e37ba69c94163016ef2c43706e7f1 /clang/lib
parent13454cfcb0e154f98e6ea613e8e3e19dc58bbe10 (diff)
downloadbcm5719-llvm-7094c15d7e44cd53530752387399d984cf3f4a05.tar.gz
bcm5719-llvm-7094c15d7e44cd53530752387399d984cf3f4a05.zip
change a diagnostic message from something pedantically correct but
useless to something more vague but hopefully more clear. rdar://6624173 llvm-svn: 65639
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Parse/Parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index a67106c4d9a..134f477634d 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -499,8 +499,8 @@ Parser::ParseDeclarationOrFunctionDefinition(
// FALL THROUGH.
} else if (DeclaratorInfo.isFunctionDeclarator() &&
(Tok.is(tok::l_brace) || // int X() {}
- ( !getLang().CPlusPlus &&
- isDeclarationSpecifier() ))) { // int X(f) int f; {}
+ (!getLang().CPlusPlus &&
+ isDeclarationSpecifier()))) { // int X(f) int f; {}
if (DS.getStorageClassSpec() == DeclSpec::SCS_typedef) {
Diag(Tok, diag::err_function_declared_typedef);
@@ -520,7 +520,7 @@ Parser::ParseDeclarationOrFunctionDefinition(
if (DeclaratorInfo.isFunctionDeclarator())
Diag(Tok, diag::err_expected_fn_body);
else
- Diag(Tok, diag::err_expected_after_declarator);
+ Diag(Tok, diag::err_invalid_token_after_toplevel_declarator);
SkipUntil(tok::semi);
return 0;
}
OpenPOWER on IntegriCloud