llvm-project/clang/unittests/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
..
CMakeLists.txt clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
CleanupTest.cpp [clang-format] revert an unintended change in r288493 and add a test case. 2016-12-19 10:41:05 +00:00
FormatTest.cpp [clang-format] Implement comment reflowing. 2017-01-25 13:58:58 +00:00
FormatTestJS.cpp clang-format: [JS] revert over-eager ASI check. 2017-01-16 09:52:40 +00:00
FormatTestJava.cpp Make tooling::applyAllReplacements return llvm::Expected<string> instead of empty string to indicate potential error. 2016-07-11 13:53:12 +00:00
FormatTestObjC.cpp clang-format: Make GetStyle return Expected<FormatStyle> instead of FormatStyle 2017-01-17 00:12:27 +00:00
FormatTestProto.cpp Make tooling::applyAllReplacements return llvm::Expected<string> instead of empty string to indicate potential error. 2016-07-11 13:53:12 +00:00
FormatTestSelective.cpp [clang-format] Implement comment reflowing. 2017-01-25 13:58:58 +00:00
FormatTestUtils.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
SortImportsTestJS.cpp clang-format: [JS] Fix line breaks before comments when sorting imports. 2016-09-19 07:02:34 +00:00
SortIncludesTest.cpp clang-format: Correctly calculate affected ranges when sorting #includes. 2016-08-30 21:33:41 +00:00