Fixes an issue where struct A { int X; }; would be broken onto multiple lines, but typedef struct A { int X; } A2; was collapsed onto a single line.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 6120 Build 6120: arc lint + arc unit
Event Timeline
Comment Actions
It strikes me that this doesn't handle using-style type aliases, but it seems hard to do this correctly in general, so still valuable to catch this simple, common case. Let me know if you have any better suggestions!
Comment Actions
One nit, otherwise looks good.
lib/Format/UnwrappedLineFormatter.cpp | ||
---|---|---|
368 | Don't use "T", that's too much engrained as template parameter. Use "Tok". |
lib/Format/UnwrappedLineFormatter.cpp | ||
---|---|---|
368 | Added nested scope to avoid shadowing Tok from above. |
Don't use "T", that's too much engrained as template parameter. Use "Tok".