clang-format: Properly parse parenthesis in braced lists.
authorDaniel Jasper <djasper@google.com>
Tue, 30 Jun 2015 11:32:22 +0000 (11:32 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 30 Jun 2015 11:32:22 +0000 (11:32 +0000)
commita87af7a32645e606b961e013d81f9152d059196f
tree35581a0ce78df4ea249cdffd745b4027da15dd9d
parent5b119091a130c2a09e9128b9e874efabb7c9c69f
clang-format: Properly parse parenthesis in braced lists.

Among other things, this makes clang-format understand arbitrary blocks
embedded in them, such as:

  SomeFunction({MACRO({ return output; }), b});

where MACRO could e.g. expand to a lambda.

llvm-svn: 241059
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp