This fixes a bug in clang-format where the last line's penalty is not
taken into account when its ending is broken. Usually the last line's penalty
is handled by addNextStateToQueue, but in cases where the trailing */ is put
on a newline, the contents of the last line have to be considered for penalizing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang