[clang] [Parser][ObjC] Add -Wobjc-prefix-length warning option. (PR #97597)
Jon Roelofs via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 3 13:43:48 PDT 2024
================
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 %s -Wobjc-prefixes=NS,NSCF,NSURL -fsyntax-only -verify
----------------
jroelofs wrote:
is it worth adding a `-Wobjc-forbidden-prefixes=NS`, so you can e.g. forbid things outside of Foundation from defining things with the `NS` prefix?
https://github.com/llvm/llvm-project/pull/97597
More information about the cfe-commits
mailing list