diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-01 03:08:43 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-01 03:08:43 +0000 |
commit | ca70f4fa1c4eae6a47c97c773b8e63803a43a90c (patch) | |
tree | e361f7a66b24b68f25f623c13b24ff90e0ac56f1 /include/clang/Basic/DiagnosticCommonKinds.td | |
parent | f1c0e483721aca10816403cc91f03ed5db876a98 (diff) |
ExpectAndConsume: Diagnose errors automatically
1) Teach ExpectAndConsume() to emit expected and expected-after diagnostics
using the generic diagnostic descriptions added in r197972, eliminating another
set of trivial err_expected_* variations while maintaining existing behaviour.
2) Lift SkipUntil() recovery out of ExpectAndConsume(). The Expect/Consume
family of functions are primitive parser operations that now have the
well-defined property of operating on single tokens. Factoring out recovery
exposes opportunities for more consistent and tailored error recover at the
call sites instead of just relying on a bottled SkipUntil formula.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticCommonKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticCommonKinds.td | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticCommonKinds.td b/include/clang/Basic/DiagnosticCommonKinds.td index 12c3e759ce..86c7e5502d 100644 --- a/include/clang/Basic/DiagnosticCommonKinds.td +++ b/include/clang/Basic/DiagnosticCommonKinds.td @@ -40,7 +40,6 @@ def note_also_found : Note<"also found">; let CategoryName = "Lexical or Preprocessor Issue" in { -def err_expected_colon : Error<"expected ':'">; def err_expected_colon_after_setter_name : Error< "method name referenced in property setter attribute " "must end with ':'">; |