summaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-02-13 19:25:54 +0000
committerDaniel Jasper <djasper@google.com>2013-02-13 19:25:54 +0000
commit42f458d164cbbee23e55e874b6cee7026ca721ca (patch)
tree4d044a0d7a963cbd97390413446f05527a935d3f /lib/Format/Format.cpp
parent82064213e9ef308e9a929ecfb31f4698a834ecdd (diff)
downloadclang-42f458d164cbbee23e55e874b6cee7026ca721ca.tar.gz
clang-42f458d164cbbee23e55e874b6cee7026ca721ca.tar.bz2
clang-42f458d164cbbee23e55e874b6cee7026ca721ca.tar.xz
Fix comment alignment close to the column limit.
Due to an error in one of the expressions, we used to not align comments although it would have been possible. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index d66271ce61..d8c02e2e18 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -127,7 +127,7 @@ public:
else
Comments.back().MinColumn = Spaces;
Comments.back().MaxColumn =
- Style.ColumnLimit - Spaces - Tok.FormatTok.TokenLength;
+ Style.ColumnLimit - Tok.FormatTok.TokenLength;
return;
}
}