Skip to content

[clang-format] Incorrectly identifies empty function as bracedList #58251

Closed
@mydeveloperday

Description

@mydeveloperday

Because clang-format cannot determine {} as an empty function is leaves out a space between the ) and the { as it doesn't identify the { as a TT_FunctionLBrace

Add an issue for tracking a potential change to fix that.

void function(){};
void function() { int a; };

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorclang-format

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions