diff options
author | Daniel Jasper <djasper@google.com> | 2015-05-06 19:21:23 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-05-06 19:21:23 +0000 |
commit | 036181471c86f2801100ce947e4a747a5b3fe16e (patch) | |
tree | 9d10480f742e8ed78e2e8b41b727bd83fc3c3696 /clang/unittests/Format/FormatTest.cpp | |
parent | 653c1099b40957d836dd85d81449e35a22e4558d (diff) | |
download | bcm5719-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.cpp | 3 |
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) { |