]> granicus.if.org Git - clang/commit
Unified token breaking logic: support for line comments.
authorAlexander Kornienko <alexfh@google.com>
Wed, 17 Apr 2013 17:34:05 +0000 (17:34 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 17 Apr 2013 17:34:05 +0000 (17:34 +0000)
commit919398bb40d5d643f38b6595f5e8eac641e89d50
tree6eaa11a379dea98cfa871eac894cb71cd4810568
parentd82fdf059724bfa0b7601833db5fff2b42853f60
Unified token breaking logic: support for line comments.

Summary:
Added BreakableLineComment, moved common code from
BreakableBlockComment to newly added BreakableComment. As a side-effect of the
rewrite, found another problem with escaped newlines and had to change
code which removes trailing whitespace from line comments not to break after
this patch.

Reviewers: klimek, djasper

Reviewed By: klimek

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D682

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179693 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/BreakableToken.cpp
lib/Format/BreakableToken.h
lib/Format/Format.cpp
lib/Format/UnwrappedLineParser.h
lib/Format/WhitespaceManager.cpp
lib/Format/WhitespaceManager.h
unittests/Format/FormatTest.cpp