Previously things like:
int main() { @try { } @catch (NSException *e) { } @try { } @catch (NSException *e) { } }
Would be formatted like:
int main() { @try { } @catch (NSException *e) { } @ try { } @catch (NSException *e) { } }
because UnwrappedLineParser::parseTryCatch() would consume the @ as
part of checking for another catch or finally. This patch fixes that
by doing a lookahead.
I'm not super happy about the way the lookhead works, but this is the only thing that worked.
can you use FormatTok->getNextNonComment()?