diff options
author | Daniel Jasper <djasper@google.com> | 2013-02-11 12:36:37 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-02-11 12:36:37 +0000 |
commit | 729a743b317d877df3978e88a4a247d2edbf2090 (patch) | |
tree | 11c14637dd8eb2e47b0a5a1c9005ce696bb7918d /unittests/Format/FormatTest.cpp | |
parent | a28fc067e3ee8eb84368530e878ce094f39651d3 (diff) |
Fix invalid formatting with spaces before trailing comments.
In google style, trailing comments are separated by two spaces. This
patch fixes the counting of these spaces and prevents clang-format from
creating a line with 81 columns.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 83e4fc54e3..97445c56b1 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -493,6 +493,9 @@ TEST_F(FormatTest, UnderstandsSingleLineComments) { " // B\n" " \"aaaaa\",\n" "};"); + verifyGoogleFormat( + "aaaaaaaaaaaaaaaaaaaaaaaaaa(\n" + " aaaaaaaaaaaaaaaaaaaaaa); // 81 cols with this comment"); } TEST_F(FormatTest, UnderstandsMultiLineComments) { |