-
-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
Description
Documentation:
https://clang.llvm.org/extra/clang-tidy/checks/readability/avoid-const-params-in-decls.html
Came across this in quanteda, e.g.
definition:
declaration:
As noted in the docs, copying over such const
qualifications is somewhat misleading since const
doesn't do anything there. OTOH, there's a readability argument that having a 1-1 match of declaration+definition makes for easier maintenance.
There's also nothing wrong, per se, with copying over the const
, so it may be more pain that it's worth to add logic to figure out whether const
can be ignored in a given case (assuming no such logic is in place already).
But, I came across this, so I figured I'd file the issue. Feel free to close as out of scope.
Metadata
Metadata
Assignees
Labels
No labels