Skip to content

clang-format regression on attribute macros #136675

Closed
@kadircet

Description

@kadircet

command: clang-format -style='{PointerAlignment: Left, AttributeMacros: [my_fancy_attribute_macro]}' a.cc

expected:

SomeLongTypeName* my_fancy_attribute_macro const
    some_name;  // Long comment about some_name.

actual:

SomeLongTypeName*
    my_fancy_attribute_macro const some_name; // Long comment about some_name.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions