summaryrefslogtreecommitdiff
path: root/lib/Sema
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-01 03:08:43 +0000
committerAlp Toker <alp@nuanti.com>2014-01-01 03:08:43 +0000
commitca70f4fa1c4eae6a47c97c773b8e63803a43a90c (patch)
treee361f7a66b24b68f25f623c13b24ff90e0ac56f1 /lib/Sema
parentf1c0e483721aca10816403cc91f03ed5db876a98 (diff)
downloadclang-ca70f4fa1c4eae6a47c97c773b8e63803a43a90c.tar.gz
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 'lib/Sema')
0 files changed, 0 insertions, 0 deletions