diff options
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index eeb857a914b1..e892f10433c5 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -14503,10 +14503,13 @@ TEST_F(FormatTest, PullTrivialFunctionDefinitionsIntoSingleLine) { FormatStyle DoNotMergeNoColumnLimit = NoColumnLimit; DoNotMergeNoColumnLimit.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; - verifyFormat("A()\n" - " : b(0) {\n" + verifyFormat("A() : b(0) {\n" "}", - "A():b(0){}", DoNotMergeNoColumnLimit); + DoNotMergeNoColumnLimit); + verifyNoChange("A()\n" + " : b(0) {\n" + "}", + DoNotMergeNoColumnLimit); verifyFormat("A()\n" " : b(0) {\n" "}", |
