readability-redundant-string-cstr¶
Finds unnecessary calls to std::string::c_str() and std::string::data().
Options¶
- StringParameterFunctions¶
A semicolon-separated list of (fully qualified) function/method/operator names, with the requirement that any parameter currently accepting a
const char*input should also be able to acceptstd::stringinputs, 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.