Skip to content

Add option for aligning asterisk and variable name #131741

Open
@alan-gu

Description

@alan-gu

I'm using C++ but I think this could be applied to some other languages.

I have

struct { 
int a;
bool *b;
}

clang format will make it

struct {
int   a;
bool *b;
}

but I want it to be

struct {
int  a;
bool *b;
}

the difference is aligning a to asterisk or to b.

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