summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/WhitespaceManager.cpp
diff options
context:
space:
mode:
authorAndi-Bogdan Postelnicu <andi@mozilla.com>2016-10-26 07:44:51 +0000
committerAndi-Bogdan Postelnicu <andi@mozilla.com>2016-10-26 07:44:51 +0000
commita9a8fdee7e19c90a0529a5ad75cb49d6f1d4635f (patch)
treee23badf5a5684b4aa7522b8d5e2529a7a79e0530 /clang/lib/Format/WhitespaceManager.cpp
parent6aafa89c34437a772ef3d4c6ca7df7d03543ab7c (diff)
downloadbcm5719-llvm-a9a8fdee7e19c90a0529a5ad75cb49d6f1d4635f.tar.gz
bcm5719-llvm-a9a8fdee7e19c90a0529a5ad75cb49d6f1d4635f.zip
Bug 28065 - clang-format incorrectly aligns backslash.
llvm-svn: 285178
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
-rw-r--r--clang/lib/Format/WhitespaceManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/WhitespaceManager.cpp b/clang/lib/Format/WhitespaceManager.cpp
index 8ca307bd165..ebc72a9d458 100644
--- a/clang/lib/Format/WhitespaceManager.cpp
+++ b/clang/lib/Format/WhitespaceManager.cpp
@@ -432,7 +432,7 @@ void WhitespaceManager::alignTrailingComments(unsigned Start, unsigned End,
}
assert(Shift >= 0);
Changes[i].Spaces += Shift;
- if (i + 1 != End)
+ if (i + 1 != Changes.size())
Changes[i + 1].PreviousEndOfTokenColumn += Shift;
Changes[i].StartOfTokenColumn += Shift;
}
OpenPOWER on IntegriCloud