Issue 154921
Summary [clang-tidy] readability-inconsistent-declaration-parameter-name should warn in the implementation file, not in the header file
Labels clang-tidy
Assignees
Reporter carlosgalvezp
    Warning in the header file is not good, because:

- It warns also on system headers, even if the user does not want warnings in system headers. The user cannot insert NOLINT suppressions in these headers. Perhaps this is a deeper bug in `ClangDiagnosticsConsumer` ?

- If there is inconsistency, most of the times one wants to change the implementation, not the header, which is likely shared among many other translation units, which would then have to also be changed accordingly, creating code churn. Such a change in a header needs to be a careful design decision, not a change suggested by a linter.


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to