]> granicus.if.org Git - clang/commit
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)
commit8378e8520c72c3f1ac96e14d85d4d6a0731aefa9
treecc41a579795beebcf4850e82d9817a8aa8a2aea5
parentc9c4216d2fb6307478254dbdc77405c931532298
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.

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