diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-04-17 16:12:46 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-04-17 16:12:46 +0000 |
commit | 67d9c8c87ef4451214211ae8bb44f84ec7713a4b (patch) | |
tree | 67b2dde644078e6bb48465303e6b7f79e97afef3 /clang/lib/Format/BreakableToken.h | |
parent | ed5aced64ef601411e400d8bb89e4dde4b7820a7 (diff) | |
download | bcm5719-llvm-67d9c8c87ef4451214211ae8bb44f84ec7713a4b.tar.gz bcm5719-llvm-67d9c8c87ef4451214211ae8bb44f84ec7713a4b.zip |
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
Diffstat (limited to 'clang/lib/Format/BreakableToken.h')
-rw-r--r-- | clang/lib/Format/BreakableToken.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/BreakableToken.h b/clang/lib/Format/BreakableToken.h index e294a505801..72bb1e4404f 100644 --- a/clang/lib/Format/BreakableToken.h +++ b/clang/lib/Format/BreakableToken.h @@ -212,7 +212,7 @@ private: // StartOfLineColumn[i] is the target column at which Line[i] should be. // Note that this excludes a leading "* " or "*" in case all lines have // a "*" prefix. - SmallVector<unsigned, 16> StartOfLineColumn; + SmallVector<int, 16> StartOfLineColumn; // The column at which the text of a broken line should start. // Note that an optional decoration would go before that column. |