Fixes the following:
BOOL (^aaa)(void) = ^BOOL {
};
The first BOOL's token was getting set to TT_FunctionAnnotationRParen incorrectly, which was causing an unexpected newline after (^aaa). This was introduced in r245846.
Differential D15643
[clang-format] Don't allow newline after uppercase Obj-C block return types ksuther on Dec 18 2015, 8:14 AM. Authored by
Details
Fixes the following: BOOL (^aaa)(void) = ^BOOL { The first BOOL's token was getting set to TT_FunctionAnnotationRParen incorrectly, which was causing an unexpected newline after (^aaa). This was introduced in r245846.
Diff Detail Event TimelineComment Actions Thank you! I don't have commit access, so could this be committed by someone who does? Comment Actions This was accepted a few months ago but it got buried and was never committed. The diff has been updated so that it can be committed cleanly. Comment Actions Ah, sorry for dropping this on the floor :(. May I nonetheless ask you to add a test (unittests/Format/FormatTest.cpp)? |