Skip to content

[clang-format] C-style cast with extra parentheses as first term of binary operator regression #105880

Closed
@joelhock

Description

@joelhock

clang-format version 18 would format this way:

int result = ((int) a) - b;

but version 19.1.0-rc3 formats instead:

int result = ((int) a) -b;

there is an easy workaround of removing the extra parentheses or using a c++-style cast like static_cast<>, but it'd be nice to get the previous correct formatting.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions