diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-01-11 16:27:16 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-01-11 16:27:16 +0000 |
| commit | dab50463d055f13d7b9f81ae3db6e75ce33adaa3 (patch) | |
| tree | dbb7b08e678f45838abcbf0155968bc3c431bf13 /lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h | |
| parent | 603954ef0e42bbeb899beb4b13081b81d0adcbab (diff) | |
| download | llvm-dab50463d055f13d7b9f81ae3db6e75ce33adaa3.zip llvm-dab50463d055f13d7b9f81ae3db6e75ce33adaa3.tar.gz llvm-dab50463d055f13d7b9f81ae3db6e75ce33adaa3.tar.bz2 | |
[clang-format] Fix comment aligning when there are changes within the comment
As soon as a comment had whitespace changes inside of the token, we
couldn't identify the whole comment as a trailing comment anymore and
alignment stopped working. Add a new boolean to Change for this special
case and fix trailing comment identification to use it.
This also changes WhitespaceManager to sum the length of all Changes
inside of a token into the first Change.
Before this fix
int xy; // a
int z; //b
became
int xy; // a
int z; // b
with this patch we immediately get to:
int xy; // a
int z; // b
Differential Revision: http://reviews.llvm.org/D16058
llvm-svn: 257341
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h')
0 files changed, 0 insertions, 0 deletions
