[clang-tools-extra] Add AllowFalseEvaluated flag to clang-tidy noexcept-move-constructor check (PR #126897)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 12 08:55:42 PST 2025
================
@@ -11,3 +11,15 @@ evaluates to ``false`` (but is not a ``false`` literal itself).
Move constructors of all the types used with STL containers, for example,
need to be declared ``noexcept``. Otherwise STL will choose copy constructors
instead. The same is valid for move assignment operations.
+
+Options
+-------
+
+The following options are described below:
+
+ - :option:`AllowFalseEvaluated`
+
+.. option:: AllowFalseEvaluated
+
+ When defined, the check will not generate any warning
+ if the `expr` in `noexcept(expr)` evaluates to `false`.
----------------
EugeneZelenko wrote:
```suggestion
if the `1expr`` in ``noexcept(expr)`` evaluates to ``false``.
```
Please add sentence with default value.
https://github.com/llvm/llvm-project/pull/126897
More information about the cfe-commits
mailing list