Issue 85524
Summary Enhancement to Align typedefs for function pointers in clang-format
Labels clang-format
Assignees
Reporter abdelmaged
    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);
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to