Issue 91062
Summary Clang format pointer alignment does not work when the type is defined via a macro
Labels clang
Assignees
Reporter ilan-schemoul
    Formatting with the setting "PointerAlignmentStyle: right" gives an unxpected output when formatting a code where the type is defined thorugh a macro
```c
struct e_t {
  int a;
};

typedef struct e_t e_t;
#define q(e) e_t

int a(e_t *argc, q(e) * argv[]) { printf("%s", argv[1] + 1); }
```
Note that we have "q(e) * argv[]" instead of "q(e) *argv[]"

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to