Page MenuHomePhabricator

[clang-format] [PR52015] clang-format should put __attribute__((foo)) on its own line before @interface / @implementation / @protocol
ClosedPublic

Authored by MyDeveloperDay on Oct 18 2021, 1:06 AM.

Details

Summary

https://bugs.llvm.org/show_bug.cgi?id=52015

A newline should be place between attribute and @ for objectivec

__attribute__((objc_subclassing_restricted))  
@interface Foo
@end

at present it formats as

__attribute__((objc_subclassing_restricted))   @interface Foo
@end

Diff Detail

Event Timeline

MyDeveloperDay requested review of this revision.Oct 18 2021, 1:06 AM
MyDeveloperDay created this revision.
This revision is now accepted and ready to land.Oct 18 2021, 2:11 AM
benhamilton accepted this revision.Oct 18 2021, 9:33 AM

Thank you!