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
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
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;
}
});