summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-05-06 19:21:23 +0000
committerDaniel Jasper <djasper@google.com>2015-05-06 19:21:23 +0000
commit036181471c86f2801100ce947e4a747a5b3fe16e (patch)
tree9d10480f742e8ed78e2e8b41b727bd83fc3c3696 /clang/unittests/Format/FormatTest.cpp
parent653c1099b40957d836dd85d81449e35a22e4558d (diff)
downloadbcm5719-llvm-036181471c86f2801100ce947e4a747a5b3fe16e.tar.gz
bcm5719-llvm-036181471c86f2801100ce947e4a747a5b3fe16e.zip
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
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp3
1 files changed, 3 insertions, 0 deletions
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) {
OpenPOWER on IntegriCloud