llvm-project/clang/lib/Format
Alexander Kornienko 67d9c8c87e Fix alignment of trailing block comments.
Summary:
This patch ensures that the lines of the block comments retain relative
column offsets. In order to do this WhitespaceManager::Changes representing
continuation of block comments keep a pointer on the change representing the
whitespace change before the block comment, and a relative column offset to this
change, so that the correct column can be reconstructed at the end of alignment
process.

Fixes http://llvm.org/PR19325

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D3408

llvm-svn: 206472
2014-04-17 16:12:46 +00:00
..
BreakableToken.cpp Fix alignment of trailing block comments. 2014-04-17 16:12:46 +00:00
BreakableToken.h Fix alignment of trailing block comments. 2014-04-17 16:12:46 +00:00
CMakeLists.txt [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
ContinuationIndenter.cpp clang-format: Respect BinPackParameters in Cpp11BracedListStyle. 2014-04-17 11:32:02 +00:00
ContinuationIndenter.h clang-format: Don't allow hanging indentation for operators on new lines 2014-04-14 11:08:45 +00:00
Encoding.h Fix crash in getStringSplit. 2013-11-26 10:38:53 +00:00
Format.cpp Format.cpp: Don't use initializer list. 2014-04-15 23:29:04 +00:00
FormatToken.cpp clang-format: Respect BinPackParameters in Cpp11BracedListStyle. 2014-04-17 11:32:02 +00:00
FormatToken.h clang-format: Add special case to reduce indentaiton in streams. 2014-04-16 12:26:54 +00:00
Makefile
TokenAnnotator.cpp clang-format: Add special case to reduce indentaiton in streams. 2014-04-16 12:26:54 +00:00
TokenAnnotator.h clang-format: Improve selective formatting of nested statements. 2013-11-28 15:58:55 +00:00
UnwrappedLineParser.cpp Format code around VCS conflict markers. 2014-04-14 09:14:11 +00:00
UnwrappedLineParser.h Format code around VCS conflict markers. 2014-04-14 09:14:11 +00:00
WhitespaceManager.cpp Fix alignment of trailing block comments. 2014-04-17 16:12:46 +00:00
WhitespaceManager.h Fix alignment of trailing block comments. 2014-04-17 16:12:46 +00:00