-
- Downloads
[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293055 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Format/BreakableToken.cpp 510 additions, 122 deletionslib/Format/BreakableToken.cpp
- lib/Format/BreakableToken.h 244 additions, 75 deletionslib/Format/BreakableToken.h
- lib/Format/CMakeLists.txt 0 additions, 1 deletionlib/Format/CMakeLists.txt
- lib/Format/Comments.cpp 0 additions, 36 deletionslib/Format/Comments.cpp
- lib/Format/Comments.h 0 additions, 33 deletionslib/Format/Comments.h
- lib/Format/ContinuationIndenter.cpp 44 additions, 16 deletionslib/Format/ContinuationIndenter.cpp
- lib/Format/TokenAnnotator.cpp 8 additions, 2 deletionslib/Format/TokenAnnotator.cpp
- lib/Format/UnwrappedLineParser.cpp 53 additions, 3 deletionslib/Format/UnwrappedLineParser.cpp
- lib/Format/WhitespaceManager.cpp 32 additions, 1 deletionlib/Format/WhitespaceManager.cpp
- unittests/Format/FormatTest.cpp 478 additions, 3 deletionsunittests/Format/FormatTest.cpp
- unittests/Format/FormatTestSelective.cpp 8 additions, 2 deletionsunittests/Format/FormatTestSelective.cpp
Loading
Please register or sign in to comment