Skip to content

Refactor: Unify indentation of preprocesor macros #15264

@IMbackK

Description

@IMbackK

Background Description

Currently all of these are used in different parts of this repo:

int func()
{
#    define foo
}
int func()
{
#define foo
}
int func()
{
    #define foo
}

this has caused confusion several times:
#15132 (comment)
#11362 (comment)

Our .clang-format specifies 1. and 2. is the most common.

I really dont like 1. but 2. and 3. are fine with me personally, i think we should clarify what the intended formatting is here and update .clang-format if needed.

Possible Refactor Approaches

update .clang-format and run an autoformating pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions