diff options
author | Daniel Jasper <djasper@google.com> | 2013-07-01 09:15:46 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-07-01 09:15:46 +0000 |
commit | 7f5d53e55fd8465209abc976fc8a6036f8138b8f (patch) | |
tree | 2ff0f7488a5e1dc64318b7f402700084c8e38cfd /clang/unittests/Format/FormatTest.cpp | |
parent | c3832f7788db8df5930cd92ef22edfa204a3a9d0 (diff) | |
download | bcm5719-llvm-7f5d53e55fd8465209abc976fc8a6036f8138b8f.tar.gz bcm5719-llvm-7f5d53e55fd8465209abc976fc8a6036f8138b8f.zip |
Fix braced-list detection in lieu of trailing comments.
Before:
DoSomethingWithVector({
} /* No data */);
After:
DoSomethingWithVector({} /* No data */);
llvm-svn: 185319
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-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 682aa522231..c4d9c6f573b 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -3641,6 +3641,7 @@ TEST_F(FormatTest, LayoutCxx11ConstructorBraceInitializers) { " aaaaaaaaaaaaaaaaaaaa, aaaaa }\n" " : vector<int>{ bbbbbbbbbbbbbbbbbbbbbbbbbbb,\n" " bbbbbbbbbbbbbbbbbbbb, bbbbb };"); + verifyFormat("DoSomethingWithVector({} /* No data */);"); FormatStyle NoSpaces = getLLVMStyle(); NoSpaces.SpacesInBracedLists = false; |