<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59953>59953</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format `DerivePointerAlignment` always falls back to `Left`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
owenca
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
owenca
</td>
</tr>
</table>
<pre>
Instead, the fallback should be the value of `PointerAlignment`.
```
$ cat test.cpp
int *p;
int* q;
$ clang-format -version
clang-format version 15.0.6
$ clang-format -style='{DerivePointerAlignment: true}' test.cpp
int* p;
int* q;
```
Expected output:
```
int *p;
int *q;
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8UtGOmzAQ_JrlxQpa7BjKgx9yTSNV6kN_wZgF3DqY4iXX_H0Fia6NLlcJCTGzs-zsjk3J9yORAf0CUsZXGp0FKUEfM7vwEGdzw7ImtlfzdUxMtgX5WfBAorMhNNb9FGmIS2hFQxt8sWEhETsBJX6PfmSaD8H345lGhhJzwCPgAUq8P7dPuRfOsmBKnLtpuqF-ZAHyMIF6eQNAHsSvN2DTBTv2uy7OZ8tid6E5-Tje6AfqzohC55iXH-kTXwOBOoKsoHo50uwv9M6GOgieF4JqLXs_9Drj_4Z-9P7l90SOqRVx4WlZmz8te7aMFXjSN2uNamtV24xMUVZqX-tKYjaYFksnW-oadN2-wsZiawunZE2aVF1VmTcSpcKikKi0lpijrlGXFVJFrXWfCtgjna0PeQiXcx7nPvMpLWR0XWuVBdtQSPc4_bvXe6hms8p2zdIn2GPwidPfRuw5kHm4BpT4wQVKFDa82mvaYpjEFkSOq-IbdSufLXMwA_OU1o3KE8hT73lYmtzFM8jT-t_7azfN8Qc5Bnna3CSQp83QnwAAAP__D4HySQ">