diff options
author | Daniel Jasper <djasper@google.com> | 2015-03-19 09:40:16 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-03-19 09:40:16 +0000 |
commit | 414c9c6fb07a8917d8c180c42d006a9729c65057 (patch) | |
tree | 55fb8113d9c8a357a93fc4ce1277eb452db6a2bd /clang/unittests/Format/FormatTest.cpp | |
parent | d0c480b04c60d0288a44f56aa0d4e48d6bccf63f (diff) | |
download | bcm5719-llvm-414c9c6fb07a8917d8c180c42d006a9729c65057.tar.gz bcm5719-llvm-414c9c6fb07a8917d8c180c42d006a9729c65057.zip |
clang-format: Fix another bug in wrapping around "*".
Before:
void aaaaa(
aaaaaaaaaaaa* aaaaaaaaaaaaaa) {} // even violation the column limit
After:
void aaaaa(aaaaaaaaaaaa*
aaaaaaaaaaaaaa) {}
llvm-svn: 232717
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 228e952bd1e..3887ca0f228 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -3780,6 +3780,10 @@ TEST_F(FormatTest, BreaksFunctionDeclarations) { verifyFormat("void aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" " aaaaaaaaaaaaaaaaaaaaaaaaa* const aaaaaaaaaaaa) {}", Style); + verifyFormat( + "void aaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa*\n" + " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}", + Style); } TEST_F(FormatTest, TrailingReturnType) { |