[PATCH] D40310: Restructure how we break tokens.
Manuel Klimek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 21 08:01:38 PST 2017
klimek created this revision.
This fixes some bugs in the reflowing logic and splits out the concerns
of reflowing from BreakableToken.
Things to do after this patch:
- Refactor the breakProtrudingToken function possibly into a class, so we can split it up into methods that operate on the common state.
- Optimize whitespace compression when reflowing by using the next possible split point instead of the latest possible split point.
https://reviews.llvm.org/D40310
Files:
lib/Format/BreakableToken.cpp
lib/Format/BreakableToken.h
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTest.cpp
unittests/Format/FormatTestComments.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40310.123807.patch
Type: text/x-patch
Size: 76951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171121/f970242e/attachment-0001.bin>
More information about the cfe-commits
mailing list