[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 10 18:17:49 PDT 2025


================
@@ -148,6 +148,13 @@ New checks
   Finds uses of ``std::lock_guard`` and suggests replacing them with C++17's
   alternative ``std::scoped_lock``.
 
+- New :doc:`portability-avoid-platform-specific-fundamental-types
+  <clang-tidy/checks/portability/avoid-platform-specific-fundamental-types>` 
+  check.
+
+  Finds fundamental types (e.g. `int`, `float`) and recommends using typedefs 
----------------
EugeneZelenko wrote:

```suggestion
  Finds fundamental types (e.g. ``int``, ``float``) and recommends using typedefs 
```

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


More information about the cfe-commits mailing list