[clang-tools-extra] [clang-tidy] comment braced-init list arguments (PR #180408)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 8 12:26:58 PST 2026


https://github.com/localspook commented:

It seems very surprising that the check will warn on this:
```cpp
f(my_type {10, "hm"});
```
but *not* on this:
```cpp
f(my_type(10, "hm"));
```
We should warn on both or neither.

Also, do we want to put this new behaviour behind an option? (general question to other reviewers)

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


More information about the cfe-commits mailing list