Skip to content

[clang-format]: macros can cause formatting to remove spaces #122299

Closed
@proximities

Description

@proximities

macros can cause formatting to remove spaces sometimes. for example

   for (auto [name, format] : targetMap)

is fine, but with a macro #define var auto, clang formats behaves like this

   #define var auto
   for (var[name, format] : targetMap)

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-formatquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions