Skip to content

Formatter eats space in front of attributes for operator delete #27037

@nico

Description

@nico
Bugzilla Link 26663
Version trunk
OS All

Extended Description

This works:

$ echo 'void operator new(void* foo) ATTRIB;' | bin/clang-format -
void operator new(void *foo) ATTRIB;

This doesn't:

$ echo 'void operator delete(void* foo) ATTRIB;' | bin/clang-format -
void operator delete(void *foo)ATTRIB;

Note the missing space in front of ATTRIB.

Metadata

Metadata

Labels

bugzillaIssues migrated from bugzillaclang-formatgood first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions