summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-03-19 09:40:16 +0000
committerDaniel Jasper <djasper@google.com>2015-03-19 09:40:16 +0000
commit414c9c6fb07a8917d8c180c42d006a9729c65057 (patch)
tree55fb8113d9c8a357a93fc4ce1277eb452db6a2bd /clang/unittests/Format/FormatTest.cpp
parentd0c480b04c60d0288a44f56aa0d4e48d6bccf63f (diff)
downloadbcm5719-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.cpp4
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) {
OpenPOWER on IntegriCloud