Skip to content

[clang-format] qualifier alignment setting is not respected on references to template type parameter #54730

Closed
@alimpfard

Description

Given the following .clang-format (and clang-format 14.0.0)

---
Language: Cpp
QualifierAlignment: Right

the following snippet is not formatted correctly (it remains unchanged)

template <typename T> using Foo = const volatile T;

however the following does get replaced with the qualifiers moving to the right:

template <typename T> using Foo = const volatile int;
// turns into:
// template <typename T> using Foo = int const volatile;

Activity

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

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