Skip to content

[clang-tidy] readability-inconsistent-declaration-parameter-name should display the differing parameters in the main error message, not as a note #154923

@carlosgalvezp

Description

@carlosgalvezp

As a user, the most important thing to know is which parameters differ between the declaration and the definition. However, this information is only displayed as the second note, which takes a lot time to find.

It would be better if it displayed it like this:

warning: function 'foo' has differing parameter names in the declaration ('bar') and the definition ('baz')
note: declaration seen here: 
note: definition seen here:

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