Skip to content

PointerAlignment: Right interaction with AlignConsecutiveDeclarations #27727

@llvmbot

Description

@llvmbot
Bugzilla Link 27353
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @mkurdej

Extended Description

Repro:

$ cat sample.c
int* a;
unsigned long long x;
double* b;
$ clang-format -style="{PointerAlignment: Right, AlignConsecutiveDeclarations: true}" sample.c
int *              a;
unsigned long long x;
double *           b;

Expected/desired output is:

int                *a;
unsigned long long  x;
double             *b;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions