diff options
| author | Manuel Klimek <klimek@google.com> | 2016-01-19 14:05:32 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2016-01-19 14:05:32 +0000 |
| commit | 27f278186db7834feec5302ff114ba422d74d360 (patch) | |
| tree | aaa8d7feb6414167eb1f90c87a4ec69ab099b778 /clang/unittests | |
| parent | 15f89c420bc090b1a307bde1fea799aae7dbb646 (diff) | |
| download | bcm5719-llvm-27f278186db7834feec5302ff114ba422d74d360.tar.gz bcm5719-llvm-27f278186db7834feec5302ff114ba422d74d360.zip | |
Fix formatting of fully qualified names in array subscripts.
Before:
a[ ::b::c];
After:
a[::b::c];
llvm-svn: 258123
Diffstat (limited to 'clang/unittests')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index d9a16db74c8..4e0d8d7acff 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -6133,6 +6133,7 @@ TEST_F(FormatTest, FormatsArrays) { "aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0]\n" " .aaaaaaa[0]\n" " .aaaaaaaaaaaaaaaaaaaaaa();"); + verifyFormat("a[::b::c];"); verifyNoCrash("a[,Y?)]", getLLVMStyleWithColumns(10)); |

