[clang] Add new flag -Wpointer-integer-ordered-compare (PR #88489)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 28 03:03:12 PDT 2024
================
@@ -245,6 +245,13 @@ Modified Compiler Flags
f3 *c = (f3 *)x;
}
+- Added a new diagnostic flag ``-Wpointer-integer-ordered-compare`` which is
+ grouped under ``-Wpointer-integer-compare`` and moved previously
+ ungrouped diagnostics ``ext_typecheck_ordered_comparison_of_pointer_integer``,
+ ``ext_typecheck_ordered_comparison_of_pointer_and_zero`` under
+ ``-Wpointer-integer-ordered-compare``.This also resolves false negative
----------------
vincent-mailhol wrote:
Nitpick: put a space after the period.
```suggestion
``-Wpointer-integer-ordered-compare``. This also resolves false negative
```
https://github.com/llvm/llvm-project/pull/88489
More information about the cfe-commits
mailing list