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
Showing
- lib/Format/Format.cpp 4 additions, 1 deletionlib/Format/Format.cpp
- lib/Format/FormatToken.h 15 additions, 4 deletionslib/Format/FormatToken.h
- lib/Format/UnwrappedLineParser.cpp 17 additions, 16 deletionslib/Format/UnwrappedLineParser.cpp
- lib/Format/UnwrappedLineParser.h 0 additions, 12 deletionslib/Format/UnwrappedLineParser.h
- unittests/Format/FormatTest.cpp 7 additions, 0 deletionsunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment