[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)
JJ Marr via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 9 19:30:45 PDT 2025
================
@@ -0,0 +1,69 @@
+// RUN: %check_clang_tidy -std=c++11-or-later %s portability-avoid-platform-specific-fundamental-types %t -- -config="{CheckOptions: [{key: portability-avoid-platform-specific-fundamental-types.WarnOnInts, value: false}, {key: portability-avoid-platform-specific-fundamental-types.WarnOnFloats, value: false}]}"
+
----------------
jj-marr wrote:
@vbvictor This case actually was covered in the avoid-platform-specific-fundamental-types-floats.cpp, I just wasn't checking for a warning because I didn't read my test case close enough. The other suggestion to replace all the redundant matchers I've created surfaced this.
https://github.com/llvm/llvm-project/pull/146970
More information about the cfe-commits
mailing list