From 7f5d53e55fd8465209abc976fc8a6036f8138b8f Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Mon, 1 Jul 2013 09:15:46 +0000 Subject: Fix braced-list detection in lieu of trailing comments. Before: DoSomethingWithVector({ } /* No data */); After: DoSomethingWithVector({} /* No data */); llvm-svn: 185319 --- clang/unittests/Format/FormatTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/unittests/Format/FormatTest.cpp') 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{ bbbbbbbbbbbbbbbbbbbbbbbbbbb,\n" " bbbbbbbbbbbbbbbbbbbb, bbbbb };"); + verifyFormat("DoSomethingWithVector({} /* No data */);"); FormatStyle NoSpaces = getLLVMStyle(); NoSpaces.SpacesInBracedLists = false; -- cgit v1.2.3