Debian Codegraph @

clang-tools-extra/docs/clang-tidy/checks/readability/redundant-string-cstr.rst

raw
1 .. title:: clang-tidy - readability-redundant-string-cstr
2
3 readability-redundant-string-cstr
4 =================================
5
6
7 Finds unnecessary calls to ``std::string::c_str()`` and ``std::string::data()``.
8
9 Options
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.