Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

ObjC: clang-format misaligns closing brackets in method with block #24744

Open Quuxplusone opened 9 years ago

Quuxplusone commented 9 years ago
Bugzilla Link PR24745
Status NEW
Importance P normal
Reported by Steven Evergreen (evergreenthrowaway@gmail.com)
Reported on 2015-09-07 22:59:43 -0700
Last modified on 2019-09-07 07:42:42 -0700
Version unspecified
Hardware PC All
CC djasper@google.com, evergreenthrowaway@gmail.com, klimek@google.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
INPUT
echo -e "[self parameter:nil\ncompletion:^{}];" | clang-format

OUTPUT
[self parameter:nil
     completion:^{
     }];

Expected: Closing curly brace and square bracket to be left-aligned. Does this
behave correctly? If so, is there an option to make it left-aligned?

Thanks!
Quuxplusone commented 9 years ago
Note...

INPUT
echo -e "[self completion:^{}];" | clang-format

OUTPUT
[self completion:^{
}];