diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-29 16:03:49 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-29 16:03:49 +0000 |
commit | f7db433ed49a43471073811d46e6869fd7f0a535 (patch) | |
tree | f4e939e30e5a4cfdaa8292a66110c2ea86be045d /clang/unittests/Format/FormatTest.cpp | |
parent | 17fdaa40fc57baa4cad1d2e5144858d17e12982a (diff) | |
download | bcm5719-llvm-f7db433ed49a43471073811d46e6869fd7f0a535.tar.gz bcm5719-llvm-f7db433ed49a43471073811d46e6869fd7f0a535.zip |
Allow all parameters on next line for function calls in Chrome.
The style guide only forbids this for function declarations. So,
now
someFunction(
aaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaa, aaaaaaaaaaaa);
Is allowed in Chromium mode.
llvm-svn: 173806
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index f8402c06a97..219d73c04d6 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1051,10 +1051,15 @@ TEST_F(FormatTest, FormatsOneParameterPerLineIfNecessary) { " a);"); FormatStyle Style = getGoogleStyle(); - Style.AllowAllParametersOnNextLine = false; - verifyFormat("aaaaaaaaaaaaaaa(aaaaaaaaa,\n" + Style.AllowAllParametersOfDeclarationOnNextLine = false; + verifyFormat("void aaaaaaaaaa(aaaaaaaaa,\n" " aaaaaaaaa,\n" - " aaaaaaaaaaaaaaaaaaaaa).aaaaaaaaaaaaaaaaaa();", + " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);", + Style); + verifyFormat("void f() {\n" + " aaaaaaaaaaaaaaaaaaaaaaaa(\n" + " aaaaaaaaa, aaaaaaaaa, aaaaaaaaaaaaaaaaaaaaa).aaaaaaa();\n" + "}", Style); } |