tidy - readability-redundant-string-cstr — Extra Clang Tools 22.0.0git documentation (original) (raw)
Finds unnecessary calls to std:🧵:c_str() andstd:🧵:data().
Options¶
StringParameterFunctions¶
A semicolon-separated list of regular expressions matching the (fully qualified) names of function/method/operator, with the requirement that any parameter currently accepting a const char* input should also be able to accept std::string inputs, or proper overload candidates that can do so should exist. This can be used to configure functions such asfmt::format, spdlog::logger::info, or wrappers around these and similar functions. The default value is the empty string.