Initial draft implementation of comment reflowing.
This is implemented as anoter pass after formatting takes place.
The reflower now takes care of breaking and reflowing comment lines. Reflowing
of comments in preprocessor directives is not supported; for these cases the
original Breakable{Line,Block}Comment still breaks the long lines.
Details
- Reviewers
djasper
Diff Detail
- Build Status
Buildable 1671 Build 1671: arc lint + arc unit
Event Timeline
unittests/Format/FormatTest.cpp | ||
---|---|---|
1631 | For the FormatTest.cpp: please keep in mind that almost all of the comment-related tests are affected (not just the ones shown), since the comment breaking is now done by the reflower. |
for these cases the
original Breakable{Line,Block}Comment still breaks the long lines.
Do you intend for this to continue to be the case?
unittests/Format/FormatTest.cpp | ||
---|---|---|
1787 | I think it is time that me moved a lot of the comment handling logic into a separate test file. |
lib/Format/Encoding.h | ||
---|---|---|
136 | Was just skimming through this patch. What is the reason to use a hand written algorithm instead of STL? |
lib/Format/Encoding.h | ||
---|---|---|
136 | Thank you! No reason. |
Was just skimming through this patch. What is the reason to use a hand written algorithm instead of STL?