brintos

brintos / llvm-project-archived public Read only

0
0
Text · 778 B · 84495a5 Raw
22 lines · plain
1.. title:: clang-tidy - readability-redundant-string-cstr2 3readability-redundant-string-cstr4=================================5 6 7Finds unnecessary calls to ``std::string::c_str()`` and8``std::string::data()``.9 10Options11-------12 13.. option:: StringParameterFunctions14 15   A semicolon-separated list of regular expressions matching the16   (fully qualified) names of function/method/operator, with the requirement17   that any parameter currently accepting a ``const char*`` input should also18   be able to accept ``std::string`` inputs, or proper overload candidates that19   can do so should exist. This can be used to configure functions such as20   ``fmt::format``, ``spdlog::logger::info``, or wrappers around these and21   similar functions. The default value is the empty string.22