]> granicus.if.org Git - clang/commit
Remove "parse error" in favor of more descriptive diagnostics.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Apr 2012 23:33:59 +0000 (23:33 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Apr 2012 23:33:59 +0000 (23:33 +0000)
commitb031eab1c07fa2c5bd74c7e92f7c938bf3304729
tree9630656102ee5b63b022059ce74aaad4b39b0860
parentf7ef931a15b4954a1bb546b8e903d08758b371d9
Remove "parse error" in favor of more descriptive diagnostics.

In a few cases clang emitted a rather content-free diagnostic: 'parse error'.
This change replaces two actual cases (template parameter parsing and K&R
parameter declaration parsing) with more specific diagnostics and removes a
third dead case of this in the BalancedDelimiterTracker (the ctor already
checked the invariant necessary to ensure that the diag::parse_error was never
actually used).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154224 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseTemplate.cpp
lib/Parse/Parser.cpp
test/Parser/cxx-template-decl.cpp
test/Parser/declarators.c