diff options
| author | Chad Rosier <mcrosier@codeaurora.org> | 2014-08-05 17:58:54 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@codeaurora.org> | 2014-08-05 17:58:54 +0000 |
| commit | 0a84f178821bf7c7098744c30a37c2671eb1f1be (patch) | |
| tree | 4300deb0971181b1a743456cd8efb7ae0547bda9 /clang/unittests/Format/FormatTest.cpp | |
| parent | c04f3f9f73f24e40db7aeddfdfbd991366682db7 (diff) | |
| download | bcm5719-llvm-0a84f178821bf7c7098744c30a37c2671eb1f1be.tar.gz bcm5719-llvm-0a84f178821bf7c7098744c30a37c2671eb1f1be.zip | |
[PR19983] SBPO_Always not covering all the cases.
Patch by "Roman Kashitsyn" <romankashicin@gmail.com>.
Phabricator revision: http://reviews.llvm.org/D4788
llvm-svn: 214904
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 74cca4fafbc..6bbda9d6e3b 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -7540,6 +7540,7 @@ TEST_F(FormatTest, ConfigurableSpaceBeforeParens) { "default:\n" " break;\n" "}", NoSpace); + verifyFormat("auto i = std::make_unique<int>(5);", NoSpace); FormatStyle Space = getLLVMStyle(); Space.SpaceBeforeParens = FormatStyle::SBPO_Always; @@ -7576,6 +7577,7 @@ TEST_F(FormatTest, ConfigurableSpaceBeforeParens) { verifyFormat("#if defined(x)\n" "#endif", Space); + verifyFormat("auto i = std::make_unique<int> (5);", Space); } TEST_F(FormatTest, ConfigurableSpacesInParentheses) { |

