llvm-project/clang/lib/Format
Krasimir Georgiev 91834227a3 [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

llvm-svn: 293055
2017-01-25 13:58:58 +00:00
..
AffectedRangeManager.cpp Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
AffectedRangeManager.h removed redundant '#' 2016-04-28 07:52:06 +00:00
BreakableToken.cpp [clang-format] Implement comment reflowing. 2017-01-25 13:58:58 +00:00
BreakableToken.h [clang-format] Implement comment reflowing. 2017-01-25 13:58:58 +00:00
CMakeLists.txt [clang-format] Implement comment reflowing. 2017-01-25 13:58:58 +00:00
ContinuationIndenter.cpp [clang-format] Implement comment reflowing. 2017-01-25 13:58:58 +00:00
ContinuationIndenter.h clang-format: Always wrap before multi-line parameters/operands. 2017-01-16 13:13:15 +00:00
Encoding.h [Format] Remove dead code. 2016-12-19 21:10:50 +00:00
Format.cpp clang-format: fix fallback style set to "none" not always formatting 2017-01-20 01:22:42 +00:00
FormatToken.cpp clang-format: Fix bug in handling of single-column lists. 2016-12-21 17:02:06 +00:00
FormatToken.h clang-format: Keep string-literal-label + value pairs on a line. 2016-12-13 11:16:42 +00:00
FormatTokenLexer.cpp clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
FormatTokenLexer.h clang-format: [JS] nested and tagged template strings. 2016-08-25 10:13:21 +00:00
SortJavaScriptImports.cpp Use after move bug fixes 2016-12-23 11:40:44 +00:00
SortJavaScriptImports.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
TokenAnalyzer.cpp Don't copy replacements in for-range loop. NFC. 2016-10-19 13:50:17 +00:00
TokenAnalyzer.h [Format] Remove dead code. 2016-12-19 21:10:50 +00:00
TokenAnnotator.cpp [clang-format] Implement comment reflowing. 2017-01-25 13:58:58 +00:00
TokenAnnotator.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineFormatter.cpp [clang-format] Fixed line merging of more than two lines 2016-11-15 15:07:07 +00:00
UnwrappedLineFormatter.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineParser.cpp [clang-format] Implement comment reflowing. 2017-01-25 13:58:58 +00:00
UnwrappedLineParser.h clang-format: [JS] Handle certain cases of ASI. 2016-03-14 19:21:36 +00:00
WhitespaceManager.cpp [clang-format] Implement comment reflowing. 2017-01-25 13:58:58 +00:00
WhitespaceManager.h [Format] Remove dead code. 2016-12-19 21:10:50 +00:00