Skip to content

[clang-format] AlignConsecutiveDeclarations is not respected in .h file for variable whose name is a C++ keyword such as new #162623

@miEsMar

Description

@miEsMar

It seems that clangd formatting style is messed up in structs definition (I do not know if this is reflected somewhere else) if fields are named with lexical keywords.

See images below:

Image Image Image

The thing is that new/delete are not C keywords, yet recognised as such, messing the formatting.

Expected behaviour:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-formatquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions