Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-tidy: Address warnings readability-avoid-const-params-in-decls and readability-named-parameter #800

Merged
merged 2 commits into from
Jan 13, 2024

Conversation

hartwork
Copy link
Member

No description provided.

clang-tidy output was:
> [..]/tests/handlers.h:502:64: error: parameter 'index' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls,-warnings-as-errors]
>   502 | _handler_record_get(const struct handler_record_list *storage, const int index,
>       |                                                                ^~~~~
> [..]/tests/handlers.h:503:39: error: parameter 'line' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls,-warnings-as-errors]
>   503 |                     const char *file, const int line);
>       |                                       ^~~~~
@hartwork hartwork added this to the 2.6.0 milestone Jan 12, 2024
@hartwork hartwork merged commit 19af57f into master Jan 13, 2024
68 checks passed
@hartwork hartwork deleted the clang-tidy-more branch January 13, 2024 01:00
@hartwork hartwork mentioned this pull request Jan 31, 2024
35 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant