HomePhabricator

[clang-format] Break non-trailing comments, try 2

Description

[clang-format] Break non-trailing comments, try 2

Summary:
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.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D37695

Details

Committed
krasimirOct 16 2017, 2:08 AM
Reviewer
djasper
Differential Revision
D37695: [clang-format] Break non-trailing comments, try 2
Parents
rL315892: [change-namespace] do not change type locs in defaulted functions.
Branches
Unknown
Tags
Unknown