[PATCH] Fix alignment of trailing block comments.
Alexander Kornienko
alexfh at google.com
Thu Apr 17 06:40:14 PDT 2014
Hi djasper,
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
http://reviews.llvm.org/D3408
Files:
lib/Format/BreakableToken.cpp
lib/Format/BreakableToken.h
lib/Format/WhitespaceManager.cpp
lib/Format/WhitespaceManager.h
unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3408.1.patch
Type: text/x-patch
Size: 15446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140417/e93f7a94/attachment.bin>
More information about the cfe-commits
mailing list