[clang] [clang-format] Fix a bug in annotating CastRParen (PR #102261)

Krasimir Georgiev via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 28 05:22:38 PDT 2024


krasimirgg wrote:

It appears that this introduced a regression in code like this:
```
int d = 0;
int c(int i) { return i; }
void a() { double b = ((double)c(0)) * d / (double)0; }
```

After this patch, the last line gets formatted as:
```
void a() { double b = ((double)c(0))*d / (double)0; }
```

https://github.com/llvm/llvm-project/pull/102261


More information about the cfe-commits mailing list