llvm / llvm/llvm-project

[clang-tidy] bugprone-* does not flag misnamed struct fields

Open
#170,921 1 comment 0 reactions 1 assignee Claimed by @zeyi2 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.