]> granicus.if.org Git - clang/commit
Fix alignment of closing brace in braced initializers.
authorDaniel Jasper <djasper@google.com>
Tue, 9 Jul 2013 09:06:29 +0000 (09:06 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 9 Jul 2013 09:06:29 +0000 (09:06 +0000)
commit0de1c4d152b5fbf0b383e9fa8396e334f029c716
tree8db45a7303d556d98e524ccbfe6983a0d9b67c01
parent6561f6a13b79ed752748ede590792191edf78ce8
Fix alignment of closing brace in braced initializers.

Before:
someFunction(OtherParam, BracedList{
                           // comment 1 (Forcing intersting break)
                           param1, param2,
                           // comment 2
                           param3, param4
             });
After:
someFunction(OtherParam, BracedList{
                           // comment 1 (Forcing intersting break)
                           param1, param2,
                           // comment 2
                           param3, param4
                         });

To do so, the UnwrappedLineParser now stores the information about the
kind of brace in the FormatToken.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185914 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
lib/Format/FormatToken.h
lib/Format/UnwrappedLineParser.cpp
lib/Format/UnwrappedLineParser.h
unittests/Format/FormatTest.cpp