summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-08-12 13:22:26 +0000
committerDaniel Jasper <djasper@google.com>2014-08-12 13:22:26 +0000
commit598dd330e8af2dcdc2fcd52aea129b42b5e37045 (patch)
treeb99b0f9162a27d40366cc142d4d4f9a65052a23b /clang/unittests/Format/FormatTest.cpp
parent9ea5582816d1936583b811a4d79e566958ec7e9f (diff)
downloadbcm5719-llvm-598dd330e8af2dcdc2fcd52aea129b42b5e37045.tar.gz
bcm5719-llvm-598dd330e8af2dcdc2fcd52aea129b42b5e37045.zip
clang-format: Avoid bad line break.
Before: int aaaaaaaaaaaaaaaaaaaaaaaaaaaaa(const typename aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa); After: int aaaaaaaaaaaaaaaaaaaaaaaaaaaaa( const typename aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa); llvm-svn: 215442
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 5e7f397ae87..f36eede8fee 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -4493,6 +4493,8 @@ TEST_F(FormatTest, WrapsTemplateDeclarations) {
" B>*>(\n"
"\n"
" );"));
+ verifyFormat("int aaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\n"
+ " const typename aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa);");
FormatStyle AlwaysBreak = getLLVMStyle();
AlwaysBreak.AlwaysBreakTemplateDeclarations = true;
OpenPOWER on IntegriCloud