[clang-tools-extra] [clang-tidy] Make readability-redundant-inline-specifier diagnose `static inline` outside header files (PR #223501)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 12:58:18 PDT 2026


================
@@ -29,3 +29,9 @@ defined entirely inside a class/struct/union definition are implicitly inlined.
 When `true`, the check will also flag functions and variables that
 already have internal linkage as redundant. Default is `false`.
 ```
+
+```{option} DiagnoseStaticInline
+
+If set to `true`, the check will flag ``static inline`` symbols declared
+outside of header files and suggest dropping the ``inline`` specifier.
----------------
higher-performance wrote:

Fixed, thanks!

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


More information about the cfe-commits mailing list