]> granicus.if.org Git - clang/commit
Improve formatting of braced lists.
authorDaniel Jasper <djasper@google.com>
Thu, 23 May 2013 10:15:45 +0000 (10:15 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 23 May 2013 10:15:45 +0000 (10:15 +0000)
commit2424eefa6936ec2dc35188e19c99e2f85428b52e
treedf697481756e865e8aebe8fb41ddc4d18c2f50d0
parenta3e21792f8774aa82964d52f8804f84152f79363
Improve formatting of braced lists.

Before:
vector<int> x { 1, 2, 3 };
After:
vector<int> x{ 1, 2, 3 };

Also add a style option to remove the spaces inside braced lists,
so that the above becomes:
std::vector<int> v{1, 2, 3};

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182570 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp