HomePhabricator

[clang-format] Implement comment reflowing.

Description

[clang-format] Implement comment reflowing.

Summary:
This presents a version of the comment reflowing with less mutable state inside
the comment breakable token subclasses. The state has been pushed into the
driving breakProtrudingToken method. For this, the API of BreakableToken is enriched
by the methods getSplitBefore and getLineLengthAfterSplitBefore.

Reviewers: klimek

Reviewed By: klimek

Subscribers: djasper, klimek, mgorny, cfe-commits, ioeric

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

Details

Committed
krasimirJan 25 2017, 5:58 AM
Reviewer
klimek
Differential Revision
D28764: [clang-format] Implement comment reflowing (v3)
Parents
rL293054: [ELF] - Implemented support for R_386_PC8/R_386_8 relocations.
Branches
Unknown
Tags
Unknown