[clang-tools-extra] [clang-tidy] Extend readability-redundant-parentheses to declarations (PR #196739)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Sat May 9 19:49:56 PDT 2026
================
@@ -40,3 +40,9 @@ Options
Some STL library functions may have the same name as widely used function-like
macro. For example, ``std::max`` and ``max`` macro. A workaround to distinguish
them is adding parentheses around functions to prevent function-like macro.
+
+The check diagnoses redundant parentheses in declarations and keeps earlier changes as it is
+.. code-block:: c++
+
+ int (x); // becomes int x;
+ void f(int (arg)); // becomes void f(int arg);
----------------
zwuis wrote:
Add a new line at EOF.
https://github.com/llvm/llvm-project/pull/196739
More information about the cfe-commits
mailing list