1.. title:: clang-tidy - readability-redundant-string-cstr 2 3readability-redundant-string-cstr 4================================= 5 6 7Finds unnecessary calls to ``std::string::c_str()`` and ``std::string::data()``. 8 9Options 10------- 11 12.. option:: StringParameterFunctions 13 14 A semicolon-separated list of (fully qualified) function/method/operator 15 names, with the requirement that any parameter currently accepting a 16 ``const char*`` input should also be able to accept ``std::string`` 17 inputs, or proper overload candidates that can do so should exist. This 18 can be used to configure functions such as ``fmt::format``, 19 ``spdlog::logger::info``, or wrappers around these and similar 20 functions. The default value is the empty string. 21