[clang-tools-extra] [clang-tidy] Add objc-protocol-order check (PR #247371)

Daniil Dudkin via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 4 12:46:45 PST 2026


unterumarmung wrote:

> As part of Chrome for iOS styleguide, we have a rule stating that protocols must be listed in alphabetical order.

Is this a rule in any other iOS/Objective-C style guide, notably Apple's? If not, I think it should be posted under "google" category as `google-objc-protocol-order`. There are already checks under "google-objc":
https://clang.llvm.org/extra/clang-tidy/checks/google/objc-avoid-nsobject-new.html
https://clang.llvm.org/extra/clang-tidy/checks/google/objc-function-naming.html
https://clang.llvm.org/extra/clang-tidy/checks/google/objc-global-variable-declaration.html

https://github.com/llvm/llvm-project/pull/247371


More information about the cfe-commits mailing list