HomePhabricator

[clang-format] Fix AlignConsecutiveDeclarations handling of pointers

Authored by darwin on Feb 27 2021, 1:40 PM.

Description

[clang-format] Fix AlignConsecutiveDeclarations handling of pointers

This is a bug fix of https://bugs.llvm.org/show_bug.cgi?id=49175

The expected code format:

unsigned int* a;
int* b;
unsigned int Const* c;

The actual code after formatting (without this patch):

unsigned int* a;
int* b;
unsigned int Const* c;

Differential Revision: https://reviews.llvm.org/D97137