]> granicus.if.org Git - clang/commit
[clang-format] Add comment manipulation header
authorEric Liu <ioeric@google.com>
Wed, 19 Oct 2016 08:19:46 +0000 (08:19 +0000)
committerEric Liu <ioeric@google.com>
Wed, 19 Oct 2016 08:19:46 +0000 (08:19 +0000)
commit1bb68321e99c162efe0821e44ecc35acab9e9764
tree34939b4a9dc53785f0d24f4890df8c44264a5988
parent8e2a638d3c9c0af2e866d614a49f27bc8b9f8cf9
[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
lib/Format/BreakableToken.cpp
lib/Format/CMakeLists.txt
lib/Format/Comments.cpp [new file with mode: 0644]
lib/Format/Comments.h [new file with mode: 0644]