diff options
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index aec93bb4cf4..5606aa109b5 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -3524,6 +3524,10 @@ TEST_F(FormatTest, IndentsRelativeToUnaryOperators) { "}"); verifyFormat("aaaaaaaaaa(!aaaaaaaaaa( // break\n" " aaaaa));"); + + // Only indent relative to unary operators if the expression is nested. + verifyFormat("*aaa = aaaaaaa( // break\n" + " bbbbbb);"); } TEST_F(FormatTest, UndestandsOverloadedOperators) { |