-
Notifications
You must be signed in to change notification settings - Fork 0
Formatting using Stroustrup brace breaking breaks try/catch blocks #18417
Comments
|
I've been checking the code, doesn't seem to difficult to generate a fix, so if you guys accept that this need to be change I can take care of it. |
|
Sure, just send the patch to cfe-commits and we'll review it. |
|
Sure, I'm personally not using stroustrup braces so I trust you on this. Generally, patches very welcome :) |
|
Attached |
|
It needs tests (unittests/Format/FormatTest.cpp) but otherwise seems like a good start. Manuel and others might/will weigh in on details once the patch is sent to cfe-commits@ (that is our usual platform for code reviews). |
|
|
|
|
|
|
Those look right to me. |
|
I just send the patch to cfe-commits. Once it is accepted this ticket can be closed. |
|
Thanks, hope it goes through. Since you mentioned astyle, I wanted to add that I submitted a patch there for the same issue; https://sourceforge.net/p/astyle/bugs/267/ |
|
I think it's the same problem as in http://llvm.org/bugs/show_bug.cgi?id=19016. It's fixed in revision 208302. This bug has been marked as a duplicate of bug 19016 |
18418.patch(2490 bytes, text/plain)The text was updated successfully, but these errors were encountered: