Skip to content

[clang-format] No control over whitespace around token pasting operator ## #80054

@davidstone

Description

@davidstone

I would like to format the preprocessor operator ## the same as any other binary operator: with spaces around it. However, I do not see a way to get clang-format to do this, so it turns #define FOO(x) x ## _y into #define FOO(x) x##_y

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-formatenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions