[PATCH] D43114: clang-format: fix formatting of ObjC @synchronized blocks
Francois Ferrand via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 15 09:12:20 PST 2018
Typz marked an inline comment as done.
Typz added inline comments.
================
Comment at: unittests/Format/FormatTestObjC.cpp:193-198
+ verifyFormat("@synchronized(self) {\n"
+ " f();\n"
+ "}\n"
+ "@synchronized(self) {\n"
+ " f();\n"
+ "}\n");
----------------
benhamilton wrote:
> Why is the block repeated twice?
not sure why, I just copied the @autoreleasepool test code.
this may be to detect some more 'internal' error, which would lead to any visible effect on the first statement itself...
Repository:
rC Clang
https://reviews.llvm.org/D43114
More information about the cfe-commits
mailing list