<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/85524>85524</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Enhancement to Align typedefs for function pointers in clang-format
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          abdelmaged
      </td>
    </tr>
</table>

<pre>
    I have multiple typedefs for function pointers, and I like them to be aligned.
There is currently no clang-format style option that can achieve this.

**Example:**
Without formatting:
```
typedef int (*first_cb)(void **val);
typedef void (*second_cb)(char **key, char **val);
typedef const void *(*third_cb)(void *val);
```

Requested formatting:
```
typedef int (*first_cb)(void **val);
typedef void        (*second_cb)(char **key, char **val);
typedef const void *(*third_cb)(void *val);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMk8uOnDwQhZ_GbErdAnNpWLDo-Wdamu2vSFlGxi6wM8YmdtFKv31kGmUuUZRdFGQZ2fh8xSn5iBjN5BB7Vj-w-jETK2kfejEotLOYUGWDV7f-GbS4IsyrJbNYBLotqHCMMPoA4-okGe9g8cYRhsj4fyCcgmew5gWBNM5AHgYEYVM1dWT5I8vPnzQGBBNBriGgI3sD50Fa4abD6MMsCCLdLIJfNj5pQSCFAyG1wWsim7iz9pmn8fRdzItFVu7r-7fPhrRfCe5kMm5KB-6yJt_HttzdgXEEjLeMn0cTIn2RA-Md4-3VGwV39FXYtFc-vFfuJ5I0ovRO_dRKLcKufcFb6tSbnd_QpHeR4LVqwpI2Qf3yRx8AH3zd5__x24qRUP29TuzPP9SQTPWl6spOZNgXpyKvuyY_lZnuuWplXjRNLVU3qlF2TdtWp7op8qYSQzdkpuc5r_KyaIqyrMryWKOoBzl2BR-6QrUFq3KchbFHa6_z0YcpMzGu2Ld1zavMigFt3OLG-durzjhPAQx9kh2GdYqsyq2JFF9BZMhi_-S0cBJndJRidU6Z-kMiwbh3ucrWYHtNtMQtJBfGL5MhvQ5H6WfGL6ni_joswX9FSYxfNh-R8ctm5UcAAAD__-v8TCw">