[clang-format] Add comment manipulation header
Summary: Introduces a separate target for comment manipulation. Currently, comment manipulation is in BreakableComment.cpp. Towards implementing comment reflowing, we want to factor out the comment-related functionality, so it can be reused. Start simple by just moving out getLineCommentIndentPrefix. Patch by Krasimir Georgiev! Reviewers: djasper Subscribers: klimek, beanz, mgorny, modocache Differential Revision: https://reviews.llvm.org/D25725 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284573 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Format/BreakableToken.cpp 1 addition, 15 deletionslib/Format/BreakableToken.cpp
- lib/Format/CMakeLists.txt 1 addition, 0 deletionslib/Format/CMakeLists.txt
- lib/Format/Comments.cpp 36 additions, 0 deletionslib/Format/Comments.cpp
- lib/Format/Comments.h 33 additions, 0 deletionslib/Format/Comments.h
lib/Format/Comments.cpp
0 → 100644
lib/Format/Comments.h
0 → 100644
Please register or sign in to comment