Skip to content

[clang-format] Attributes forces any variable with templated type to indent incorrectly #76314

@XDeme1

Description

@XDeme1

The code:

[[maybe_unused]]
int a;
[[maybe_unused]]
foo<int> b;

is formatted to:

[[maybe_unused]]
int a;
[[maybe_unused]]
foo<int>
    b;

any variable template is indented like this, making it inconsistent with non-templated variable definitions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions