Skip to content

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

@davidben

Description

@davidben

/*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

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidyenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions