aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/WhitespaceManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
-rw-r--r--clang/lib/Format/WhitespaceManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/WhitespaceManager.cpp b/clang/lib/Format/WhitespaceManager.cpp
index d7e5612..27ad90c 100644
--- a/clang/lib/Format/WhitespaceManager.cpp
+++ b/clang/lib/Format/WhitespaceManager.cpp
@@ -1088,9 +1088,9 @@ void WhitespaceManager::alignTrailingComments() {
else
ChangeMaxColumn = ChangeMinColumn;
- if (I + 1 < Size && Changes[I + 1].ContinuesPPDirective) {
+ if (I + 1 < Size && Changes[I + 1].ContinuesPPDirective &&
+ ChangeMaxColumn >= 2) {
ChangeMaxColumn -= 2;
- assert(ChangeMaxColumn >= 0);
}
bool WasAlignedWithStartOfNextLine = false;