Skip to content

[clang-format] Faulty RemoveParentheses: MultipleParentheses/ReturnStatement #81399

Closed
@prj-

Description

@prj-
$ cat no_return.c 
#define foo(...) bar((__VA_ARGS__))
$ clang-format --version
clang-format version 17.0.6
$ clang-format -style='{RemoveParentheses: ReturnStatement}' no_return.c 
#define foo(...) bar(__VA_ARGS__)
$ clang-format-18 -style='{RemoveParentheses: ReturnStatement}' no_return.c 
#define foo(...) bar(__VA_ARGS__)
$ clang-format-19 -style='{RemoveParentheses: ReturnStatement}' no_return.c
#define foo(...) bar(__VA_ARGS__)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions