[cfe-commits] [patch] Let formatting format objc access specifiers

Nico Weber thakis at chromium.org
Mon Jan 7 09:55:25 PST 2013


Hi,

the attached patch adds formatting support for the objc formatting
specifiers @public, @protected, @private, and @package. @package is
new in Objective-C 2, so the patch also turns on LangOpts.ObjC2 for
the test.

The patch formats them like public:, private:, and protected: in c++.
This is definitely correct for google style, and `ack "@public"
test/SemaObjC` suggests that it might be correct for non-google style
too (but that can be tweaked later).

Ok?

Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-formatobjcaccess.patch
Type: application/octet-stream
Size: 3520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130107/d9491aa3/attachment.obj>


More information about the cfe-commits mailing list