Account for an r_brace that precedes an "else if" statement when calculating whether the line might fit on one line if the r_brace is removed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Then replace test with check.
I mean if we don't want to remove braces and the line than becomes to long, because we keep the brace. As far as I can see that could now happen right?
Comment Actions
There is no test in my patch. What's check?
I mean if we don't want to remove braces and the line than becomes to long, because we keep the brace. As far as I can see that could now happen right?
If RemoveBracesLLVM is false, the line is too long and will wrap. If RemoveBracesLLVM is true, the line will fit on a single line after the braces are removed, However, without this patch, the braces would be kept and the line would wrap. (See the linked issue in the summary.)