[PATCH] D40221: [clang-format] Parse blocks in braced lists

2019-10-11 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: lib/Format/UnwrappedLineParser.cpp:1324 + nextToken(); + if (!Style.isCpp()) { +// Blocks are only supported in C++ and Objective-C. benhamilton wrote: > Style: Remove curly braces for one-line if blocks. > Isn't t

[PATCH] D40221: [clang-format] Parse blocks in braced lists

2018-05-23 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton edited reviewers, added: klimek; removed: djasper. benhamilton added a comment. @djasper isn't available to review. At a high level, this seems good, but I'd like @klimek to take a look. Comment at: lib/Format/UnwrappedLineParser.cpp:1320 +// \endcode +bool Unwrapp

[PATCH] D40221: [clang-format] Parse blocks in braced lists

2017-11-18 Thread strager via Phabricator via cfe-commits
strager created this revision. Herald added a subscriber: klimek. clang-format completely ruins the formatting of block literal expressions which appear inside inside braced initializer lists. For example: int main() { foo({ ^() { return nil; } });