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

enable modernize-* checks in clang-tidy #372

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

wxyucs
Copy link
Collaborator

@wxyucs wxyucs commented Feb 5, 2025

No description provided.

Signed-off-by: Xiangyu Wang <wxy407827@antgroup.com>
@wxyucs wxyucs added kind/improvement Code improvements (variable/function renaming, refactoring, etc. ) version/0.13 labels Feb 5, 2025
@wxyucs wxyucs self-assigned this Feb 5, 2025
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

@@            Coverage Diff             @@
##             main     #372      +/-   ##
==========================================
- Coverage   91.16%   91.14%   -0.02%     
==========================================
  Files         134      134              
  Lines        8736     8734       -2     
==========================================
- Hits         7964     7961       -3     
- Misses        772      773       +1     
Flag Coverage Δ
cpp 91.14% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
common 95.75% <100.00%> (+<0.01%) ⬆️
datacell 92.25% <100.00%> (+0.15%) ⬆️
index 91.25% <100.00%> (-0.09%) ⬇️
simd 81.72% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be09337...088e9ed. Read the comment docs.

Copy link
Collaborator

@jiaweizone jiaweizone left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -31,7 +31,7 @@
namespace vsag {

struct SlowTaskTimer {
explicit SlowTaskTimer(const std::string& name, int64_t log_threshold_ms = 0);
explicit SlowTaskTimer(std::string name, int64_t log_threshold_ms = 0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor: why remove const& ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jiaweizone it's changed to std::move() in utils.cpp:L26

@wxyucs wxyucs merged commit 007b332 into main Feb 6, 2025
16 checks passed
@wxyucs wxyucs deleted the enable-linter-option branch February 6, 2025 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement Code improvements (variable/function renaming, refactoring, etc. ) size/L version/0.13
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants