Issue 128847
Summary [clang-format] Wrong formatting when 'new' is used as variable name in C
Labels clang-format
Assignees
Reporter Tamaranch
    Follow-up to https://github.com/llvm/llvm-project/issues/59188#issuecomment-2680625438

clang-format outputs
```c
int maximized = new &STATE_MAXIMIZED;
```
instead of
```c
int maximized = new & STATE_MAXIMIZED;
```

**version**: 19.1.7 on arch linux, and this is not fixed by https://github.com/llvm/llvm-project/pull/128287 (see https://github.com/llvm/llvm-project/issues/59188#issuecomment-2683946469).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to