Skip to content

[clang-format] Add an option to configure C++ attributes #58102

Closed
@cjdb

Description

When there are too many attributes, functions tend to get formatted like this:

[[attr1, attr2, attr3, attr4]] __keyword_attr constexpr void
f(args...);

It'd be nice if this were configurable, so that we could also have

// option 1
[[attr1, attr2, attr3, attr4]] __keyword_attr
constexpr void f(args...);

// option 2
[[attr1, attr2, attr3, attr4]]
__keyword_attr constexpr void f(args...);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions