Use Parser::ExpectAndConsume() uniformly to eat semicolons after
authorDouglas Gregor <dgregor@apple.com>
Wed, 5 Jan 2011 01:10:06 +0000 (01:10 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 5 Jan 2011 01:10:06 +0000 (01:10 +0000)
commite6bf90aec0044342ffccd13201b8a3a31a985a4b
treee8fb1c1ff9b7756918248e4503d8ffc4bc96e3d4
parent2fdc5e8199e1e239620f2faae88997153703e16f
Use Parser::ExpectAndConsume() uniformly to eat semicolons after
Objective-C declarations and statements. Fixes
<rdar://problem/8814576> (wrong source line for diagnostics about
missing ';'), and now we actually consume the ';' at the end of a
@compatibility_alias directive!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122855 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseObjc.cpp
test/Parser/objc-property-syntax.m
test/Parser/objc-quirks.m