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
- Build Status
Buildable 10610 Build 10610: arc lint + arc unit
Event Timeline
lib/Format/ContinuationIndenter.h | ||
---|---|---|
269 | 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:
|
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: