This patch enables BreakableToken to manage the formatting of non-trailing
block comments. It is a refinement of https://reviews.llvm.org/D37007.
We discovered that the optimizer outsmarts us on cases where breaking the comment
costs considerably less than breaking after the comment. This patch addresses
this by ensuring that a newline is inserted between a block comment and the next
token.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Format/ContinuationIndenter.h | ||
---|---|---|
270 ↗ | (On Diff #114617) | We should be *very* careful when adding stuff to ParenState as every extra bit of data and every extra comparison can have substantial cost. Here, specifically:
|