[clang-tools-extra] [llvm] [clang-tidy] Add portability-function-pointer-equality lint (PR #239430)
Jordan R AW via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 4 15:47:45 PST 2026
================
@@ -0,0 +1,65 @@
+```{title} clang-tidy - misc-function-pointer-equality
+```
+
+# misc-function-pointer-equality
+
+Detects equality comparisons between function pointers and standard containers
+keyed by function pointers, which can behave unpredictably or unsoundly when
+aggressive Identical Code Folding (`--icf=all`) is enabled.
----------------
ajordanr-google wrote:
It's very true. I have updated all the text to refer instead to the C++ language standard, and pointed out some miscompiles.
https://github.com/llvm/llvm-project/pull/239430
More information about the cfe-commits
mailing list