[clang] Add new flag -Wpointer-integer-ordered-compare (PR #88489)

via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 13 02:33:45 PDT 2024


================
@@ -714,10 +714,11 @@ def HeaderHygiene : DiagGroup<"header-hygiene">;
 def DuplicateDeclSpecifier : DiagGroup<"duplicate-decl-specifier">;
 def CompareDistinctPointerType : DiagGroup<"compare-distinct-pointer-types">;
 def GNUUnionCast : DiagGroup<"gnu-union-cast">;
+def PointerIntegerOrderedCompare : DiagGroup<"pointer-integer-ordered-compare">;
+def PointerIntegerCompare : DiagGroup<"pointer-integer-compare",[PointerIntegerOrderedCompare]>;
 def GNUVariableSizedTypeNotAtEnd : DiagGroup<"gnu-variable-sized-type-not-at-end">;
 def Varargs : DiagGroup<"varargs">;
 def XorUsedAsPow : DiagGroup<"xor-used-as-pow">;
-
----------------
vincent-mailhol wrote:

Nitpick: this line removal is not related to the commit.
```suggestion
```

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


More information about the cfe-commits mailing list