[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 12:26:55 PST 2025


================
@@ -11,3 +11,16 @@ 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``.
+    The default value is `false`.
----------------
EugeneZelenko wrote:

```suggestion
    Default value is `false`.
```

For consistency with other similar texts.

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


More information about the cfe-commits mailing list