[clang-tools-extra] [clang-tidy][readability-redundant-parentheses] add option to prevent widely used work around (PR #164827)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 23 08:24:59 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.
+ The default is an `std::max;std::min`.
+
+ Some std library functions may have the same name as widely used function-like
----------------
EugeneZelenko wrote:
```suggestion
Some STL library functions may have the same name as widely used function-like
```
https://github.com/llvm/llvm-project/pull/164827
More information about the cfe-commits
mailing list