This option allows to eliminate parameter names instead of commenting
them out.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst | ||
---|---|---|
25 | OOC why the extra space after the type? |
clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst | ||
---|---|---|
25 | The space is in the original code, the fix only touches the name (clang-format is expected to fix it afterward) |
clang-tools-extra/clang-tidy/misc/UnusedParametersCheck.cpp | ||
---|---|---|
157 | Oh I was thinking that the option would disable editing the parameter at all. I.e. it would leave unused parameters untouched or remove the parameter from the function signature altogether (if it can). |
Looks reasonable as an option/this is another way to make it explicit that param is unused.
clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst | ||
---|---|---|
48 | Could we flip this? ElideUnusedParameterNames with default value false: eliding drops local information and I'd rather that be explicit in the name. CommentOut is still the default with the current naming, but it feels more optional for some reason to me. WDYT? |
Oh I was thinking that the option would disable editing the parameter at all. I.e. it would leave unused parameters untouched or remove the parameter from the function signature altogether (if it can).