Repository navigation
fix(clang-tidy): drop redundant c_str()/data() calls - #1225
Conversation
|
I personally think, we should rather deactivate the check...as it does not provide any value to me. |
Resolve all 5 readability-redundant-string-cstr findings by passing the std::string directly where it converts implicitly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
I would agree with clang tidy change, but the I do not think it is well explain and the reason might be different than the checker claim. |
Summary
Fixes all 5
readability-redundant-string-cstrfindings (shared_memory_resource.cppx2,configuration_json_parsing_strategy.cpp,tracing_filter_config.cppx2) by passing thestd::stringdirectly instead of.c_str()/.data().Verification
bazel build //score/...andbazel test //score/memory/... //score/mw/com/impl/...pass