Issue 183517
Summary [clang-tidy] False positive readability-trailing-comma with brace initialization
Labels clang-tidy, false-positive
Assignees
Reporter carlosgalvezp
    Example:

```cpp
void f()
{
    int x{123 + 
          456};
}
```

Leads to:
```
source>:4:14: warning: initializer list should have a trailing comma [readability-trailing-comma]
    4 |           456};
      | ^
      |              ,
1 warning generated.
```


[Godbolt.](https://godbolt.org/z/n9T6ovheq)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to