diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-04-06 23:33:59 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-04-06 23:33:59 +0000 |
commit | 89f13cb5bfdee00879d2904b56e8923f48f9d63f (patch) | |
tree | 1e3eb6a0b0ebee0d50c1f281c78b6d3d0a69a2d1 /clang/test/Parser/cxx-template-decl.cpp | |
parent | d13c23c393698167ff185eb8eb71d5abd38b851d (diff) | |
download | bcm5719-llvm-89f13cb5bfdee00879d2904b56e8923f48f9d63f.tar.gz bcm5719-llvm-89f13cb5bfdee00879d2904b56e8923f48f9d63f.zip |
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).
llvm-svn: 154224
Diffstat (limited to 'clang/test/Parser/cxx-template-decl.cpp')
-rw-r--r-- | clang/test/Parser/cxx-template-decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp index 870be930a6f..be1f81e9d15 100644 --- a/clang/test/Parser/cxx-template-decl.cpp +++ b/clang/test/Parser/cxx-template-decl.cpp @@ -6,7 +6,7 @@ template x; // expected-error {{C++ requires a type specifier for al // expected-error {{does not refer}} export template x; // expected-error {{expected '<' after 'template'}} export template<class T> class x0; // expected-warning {{exported templates are unsupported}} -template < ; // expected-error {{parse error}} \ +template < ; // expected-error {{expected template parameter}} \ // expected-error{{expected ',' or '>' in template-parameter-list}} \ // expected-warning {{declaration does not declare anything}} template <template X> struct Err1; // expected-error {{expected '<' after 'template'}} \ |