[PATCH] D136790: [Clang][Sema] Add -Wincompatible-function-pointer-types-strict
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 31 12:06:59 PDT 2022
aaron.ballman added a comment.
Thank you for the new diagnostic, please be sure to add a release note so users know there's a new warning.
================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:8217
+ err_typecheck_convert_incompatible_function_pointer.Text>,
+ InGroup<DiagGroup<"incompatible-function-pointer-types-strict">>, DefaultIgnore;
def ext_typecheck_convert_discards_qualifiers : ExtWarn<
----------------
We don't typically add new off-by-default warnings because we have evidence that users don't enable them enough to be worth adding them. Is there a way we can enable this warning by default for CFI compilation units (or when the cfi sanitizer is enabled) so that it's only off by default for non-CFI users? I don't think we have any examples of doing this in the code base, so I believe this would be breaking new ground (and thus is worth thinking about more, perhaps it's a bad idea for some reason).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136790/new/
https://reviews.llvm.org/D136790
More information about the cfe-commits
mailing list