'clang-format pointer syntax alignment with multiple declarations on one line

With a C++ input file such as:

int *p1;
int *p2, *p3;

I can run clang-format using the Chromium style; which has a Left value for the PointerAlignment option. But when I do, only p1 has its pointer star aligned to the left:

$ clang-format -style=chromium what.cpp

int* p1;
int *p2, *p3;

Is there another option which can affect the pointer star alignment when multiple variables are declared in the same statement?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source