[clang-tools-extra] [clang-tidy] bugprone-implicit-widening ignores const exprs that fit (PR #98352)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 10 11:12:07 PDT 2024
================
@@ -45,6 +45,12 @@ Options
should ``<cstddef>`` header be suggested, or ``<stddef.h>``.
Defaults to ``true``.
+.. option:: IgnoreConstantIntExpr
+
+ If the multiplication operands are compile-time constants (like literals or
+ are ``constexpr``) and fit within the source expression type, do not emit a
+ diagnostic or suggested fix. Only considers expressions where the source
+ expression is a signed integer type.
----------------
PiotrZSL wrote:
Add info about default value at the end
https://github.com/llvm/llvm-project/pull/98352
More information about the cfe-commits
mailing list