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

tidy: enable misc-unused-parameters #2249

Merged
merged 1 commit into from
Oct 24, 2023
Merged

tidy: enable misc-unused-parameters #2249

merged 1 commit into from
Oct 24, 2023

Conversation

Riolku
Copy link
Contributor

@Riolku Riolku commented Oct 23, 2023

About half of this was done by hand, and about half with an automated tool.

@Riolku Riolku marked this pull request as ready for review October 23, 2023 19:36
@Riolku Riolku force-pushed the tidy-unused branch 4 times, most recently from 5936791 to 5115d49 Compare October 23, 2023 20:18
@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Attention: 23 lines in your changes are missing coverage. Please review.

Comparison is base (f2171c0) 89.62% compared to head (5115d49) 89.72%.
Report is 1 commits behind head on master.

❗ Current head 5115d49 differs from pull request most recent head c25f3ed. Consider uploading reports for the commit c25f3ed to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2249      +/-   ##
==========================================
+ Coverage   89.62%   89.72%   +0.09%     
==========================================
  Files        1017     1013       -4     
  Lines       35856    35811      -45     
==========================================
- Hits        32137    32131       -6     
+ Misses       3719     3680      -39     
Files Coverage Δ
src/common/arrow/arrow_row_batch.cpp 53.77% <ø> (ø)
src/common/string_utils.cpp 96.36% <100.00%> (ø)
src/common/type_utils.cpp 86.07% <100.00%> (-0.35%) ⬇️
src/expression_evaluator/case_evaluator.cpp 81.72% <ø> (ø)
src/expression_evaluator/function_evaluator.cpp 100.00% <ø> (ø)
src/expression_evaluator/literal_evaluator.cpp 100.00% <100.00%> (ø)
src/expression_evaluator/node_rel_evaluator.cpp 100.00% <ø> (ø)
src/expression_evaluator/path_evaluator.cpp 98.49% <ø> (ø)
src/function/aggregate/count.cpp 69.23% <ø> (ø)
src/function/built_in_table_functions.cpp 98.05% <100.00%> (ø)
... and 143 more

... and 30 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@acquamarin acquamarin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not quite sure whether we should strictly follow the clang-format rule at this stage.
Maybe @ray6080 @andyfengHKU @mewim should also comment on this.

src/function/vector_list_functions.cpp Outdated Show resolved Hide resolved
src/function/vector_list_functions.cpp Outdated Show resolved Hide resolved
@ray6080
Copy link
Contributor

ray6080 commented Oct 23, 2023

I am not quite sure whether we should strictly follow the clang-format rule at this stage. Maybe @ray6080 @andyfengHKU @mewim should also comment on this.

I'm not against this change to enhance our tidy checks, though I feel we can deprioritize coding style checks for now, as this can easily add conflicts to other's local changes, and this seems like something good to be done in a bulky way. Maybe we can schedule code style cleanups before each release when we reach a state that most changes are frozen to be merged into master. Also, I'm curious if this can help moving towards -Werror in the longer term.

@Riolku
Copy link
Contributor Author

Riolku commented Oct 23, 2023

I think most clang-tidy related changes should be less invasive than this one, or at least, so I hope.

#2194 was large because of me adding many tests, and renaming to stringFormat. #2156 was not very large.

@Riolku
Copy link
Contributor Author

Riolku commented Oct 23, 2023

Realistically, with a team working full time, these kinds of changes will always cause mass conflicts. Even if we do it when master is frozen, this doesn't really prevent people from rebasing their branches. All it means is I have to rebase less when making this PR, maybe.

I agree that these changes can be deprioritized.

src/function/vector_null_functions.cpp Outdated Show resolved Hide resolved
src/function/vector_struct_functions.cpp Outdated Show resolved Hide resolved
@Riolku Riolku force-pushed the tidy-unused branch 3 times, most recently from 50b59a6 to 70e0c59 Compare October 24, 2023 17:24
About half of this was done by hand, and about half with an automated
tool.
@Riolku Riolku merged commit ecf1dd2 into master Oct 24, 2023
10 checks passed
@Riolku Riolku deleted the tidy-unused branch October 24, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants