[cfe-commits] r64608 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.def lib/Parse/ParseObjc.cpp
Chris Lattner
sabre at nondot.org
Sun Feb 15 14:21:03 PST 2009
Author: lattner
Date: Sun Feb 15 16:21:03 2009
New Revision: 64608
URL: http://llvm.org/viewvc/llvm-project?rev=64608&view=rev
Log:
don't pass a random english string in as a string argument to Diag.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticParseKinds.def
cfe/trunk/lib/Parse/ParseObjc.cpp
Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.def?rev=64608&r1=64607&r2=64608&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticParseKinds.def (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticParseKinds.def Sun Feb 15 16:21:03 2009
@@ -138,6 +138,8 @@
"expected ';' after %0")
DIAG(err_expected_semi_after_expr, ERROR,
"expected ';' after expression")
+DIAG(err_expected_semi_after_method_proto, ERROR,
+ "expected ';' after method prototype")
DIAG(err_expected_semi_for, ERROR,
"expected ';' in 'for' statement specifier")
DIAG(err_expected_colon_after, ERROR,
Modified: cfe/trunk/lib/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseObjc.cpp?rev=64608&r1=64607&r2=64608&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/lib/Parse/ParseObjc.cpp Sun Feb 15 16:21:03 2009
@@ -239,7 +239,7 @@
allMethods.push_back(methodPrototype);
// Consume the ';' here, since ParseObjCMethodPrototype() is re-used for
// method definitions.
- ExpectAndConsume(tok::semi, diag::err_expected_semi_after,"method proto");
+ ExpectAndConsume(tok::semi, diag::err_expected_semi_after_method_proto);
continue;
}
More information about the cfe-commits
mailing list