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

Use std::string_view and fmt more extensively #3480

Merged
merged 1 commit into from
Apr 10, 2023
Merged

Conversation

randombit
Copy link
Owner

No description provided.

@randombit randombit force-pushed the jack/more-fmt branch 6 times, most recently from 0a37e79 to c661721 Compare April 7, 2023 19:30
@randombit randombit mentioned this pull request Apr 9, 2023
29 tasks
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 81.31% and project coverage change: +0.01 🎉

Comparison is base (3a2b906) 88.20% compared to head (d819676) 88.21%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3480      +/-   ##
==========================================
+ Coverage   88.20%   88.21%   +0.01%     
==========================================
  Files         617      617              
  Lines       70417    70387      -30     
  Branches     6888     6822      -66     
==========================================
- Hits        62109    62095      -14     
+ Misses       5448     5436      -12     
+ Partials     2860     2856       -4     
Impacted Files Coverage Δ
src/cli/tls_client.cpp 61.53% <0.00%> (ø)
src/fuzzer/asn1.cpp 100.00% <ø> (ø)
src/fuzzer/tls_client.cpp 60.00% <ø> (ø)
src/fuzzer/tls_server.cpp 41.07% <ø> (ø)
src/lib/asn1/der_enc.cpp 76.82% <ø> (+1.32%) ⬆️
src/lib/asn1/oids.cpp 0.00% <0.00%> (ø)
src/lib/compression/compress_utils.cpp 71.08% <0.00%> (-4.56%) ⬇️
src/lib/ffi/ffi_pkey_algs.cpp 90.31% <ø> (-0.07%) ⬇️
src/lib/misc/hotp/totp.cpp 100.00% <ø> (ø)
src/lib/modes/aead/eax/eax.cpp 97.72% <0.00%> (ø)
... and 118 more

... and 16 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@randombit randombit merged commit e402227 into master Apr 10, 2023
@randombit randombit deleted the jack/more-fmt branch April 11, 2023 21:02
{
return m_name;
}

const std::string& hash_function_name() const
const std::string hash_function_name() const
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry for pulling out this old PR. Though: I think these should have stayed const std::string&, no?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I don't recall what my thinking was here. If I had to guess, this was an accident where I had a regex converting s/const std::string&/std::string_view/g, and then I reverted cases like here where I was changing a return type, but then failed to fully revert.

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.

3 participants