-
- Downloads
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206472 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Format/BreakableToken.cpp 3 additions, 5 deletionslib/Format/BreakableToken.cpp
- lib/Format/BreakableToken.h 1 addition, 1 deletionlib/Format/BreakableToken.h
- lib/Format/WhitespaceManager.cpp 85 additions, 61 deletionslib/Format/WhitespaceManager.cpp
- lib/Format/WhitespaceManager.h 23 additions, 3 deletionslib/Format/WhitespaceManager.h
- unittests/Format/FormatTest.cpp 24 additions, 0 deletionsunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment