[clang-tidy] bugprone-* does not flag misnamed struct fields
Open
clang-tidy
enhancement
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
`/*foo=*/` syntax can be useful for struct initializers, in codebases that target too old of a language version to use designated initializers. It would be nice if clang-tidy flagged this too, either in bugprone-argument-comment, or in a similar check.
https://godbolt.org/z/5eEMnaszW
Contributor guide
Assessment
This issue has not been assessed yet.