| Issue |
63846
|
| Summary |
clang-format may treat aggregate initialization of a pointer type inside an if condition as multiplication
|
| Labels |
clang-format
|
| Assignees |
|
| Reporter |
MarcoFalke
|
Steps to reproduce with `clang-format version 16.0.6`:
* Output of `clang-format /tmp/a.cpp`:
```cpp
#define MYI int
int main() {
if (2 * 3)
;
if (int *p{nullptr})
;
if (MYI * p{nullptr}) // wrong, should be "*p"
;
if (MYI *p = nullptr)
;
}
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs