From 036181471c86f2801100ce947e4a747a5b3fe16e Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Wed, 6 May 2015 19:21:23 +0000 Subject: clang-format: Don't indent 'signals' as access specifier if it isn't one Before: { signals.set(0); } After: { signals.set(0); } llvm-svn: 236630 --- clang/unittests/Format/FormatTest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/unittests/Format/FormatTest.cpp') diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 000f87ce40c..9b553617851 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1939,6 +1939,9 @@ TEST_F(FormatTest, UnderstandsAccessSpecifiers) { // Don't interpret 'signals' the wrong way. verifyFormat("signals.set();"); verifyFormat("for (Signals signals : f()) {\n}"); + verifyFormat("{\n" + " signals.set(); // This needs indentation.\n" + "}"); } TEST_F(FormatTest, SeparatesLogicalBlocks) { -- cgit v1.2.3