This patch adds parsing of try and catch statements to LibFormat, respecting the break before brace style as appropriate.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
Event Timeline
Comment Actions
First of all, thank you for working on this!
There is already another patch out there that is doing the same thing: http://llvm-reviews.chandlerc.com/D2555. Not quite sure how to move forward. I'll ping that patch once more and pick it up if nothing happens. Generally:
- I think it doesn't really make sense to parse try and cat independently. Especially, many coding styles require the "}" on the same line as the following "catch".
- We have a unit testing infrastructure in cfe/unittests/Format/FormatTest.cpp, which we prefer over the file-check-based tests for various reasons.
Comment Actions
Hah, I'm not surprised someone's already taken a stab at this. OK, I'll look at that patch; perhaps I can finish that one up.
Thanks for pointing me to the correct place to do testing (I was a bit surprised by the sparseness of the FileCheck tests :)).