[clang-tools-extra] [clang-tidy][readability-redundant-parentheses] add option to prevent widely used work around (PR #164827)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 23 09:49:57 PDT 2025
================
@@ -27,3 +27,16 @@ affect the semantics.
.. code-block:: c++
int a = (1 * 2) + 3; // no warning
+
+Options
+-------
+
+.. option:: AllowedDecls
+
+ A semicolon-separated list of names of declarations included variables and
+ functions to ignore when the parenthese around it.
----------------
vbvictor wrote:
Imo, this way is easier to read.
```suggestion
A semicolon-separated list of names of declarations to ignore when the
parentheses are around. Declarations can include variables or functions.
```
https://github.com/llvm/llvm-project/pull/164827
More information about the cfe-commits
mailing list