llvm / llvm/llvm-project

[clang-tidy] Option to remove redundant parentheses in declarations

Open
#196,210 7 comments 0 reactions 1 assignee Claimed by @cs25mtech12008 View on GitHub
clang-tidy enhancement
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

| Before | After |
| --- | --- |
| `int (x);` | `int x;` |
| `void (f)(int (x));` | `void f(int x);` |

`readability-redundant-parentheses` is related, but just removes parentheses from expressions (https://godbolt.org/z/rEKoWxdqv)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.