3 ms·
Very nice! I've been following this for some time and am very happy to see this stable release! An aside: Has anyone tried the Clang Formatter plugin? I want
by nextstep 13y ago
Very nice! I've been following this for some time and am very happy to see this stable release!
An aside: Has anyone tried the Clang Formatter plugin? I want to format property declarations like:
@property (nonatomic, strong) NSString *string;
But setting 'ObjCSpaceAfterProperty' to true or false both output:
@property(nonatomic, strong) NSString *string;
My format config is based off llvm's. Maybe some other configuration is stomping on the 'ObjCSpaceAfterProperty: true'?
(Does anyone have a .clang-format file that that matches Apple's style?)
- LegNeato 13y agoI actually wrote that patch! Are you sure you are using a version of clang with support for it? As far as I know a new release hasn't been cut with the included patch. At Facebook we use clang-format with that patch and it works. I should note that Alcatraz's clang plugin looks to have a compiled version of an old clang-format in the tree...that's likely why this doesn't work with that plugin.
- deleted 13y ago[deleted]
- nextstep 13y agoThank you! That was causing my issue. Thanks for adding that ObjC option.