[clang-tidy] Support std::format and std::print in readability-redundant-string-cstr
std::format (C++20) and std::print (C++23) are perfectly happy to accept std::string arguments. Converting them to C-style strings by calling c_str() is unnecessary and may cause extra walking of the string to determine its length. Depends on D144216 Reviewed By: carlosgalvezp, PiotrZSL Differential Revision: https://reviews.llvm.org/D143342
Loading
Please sign in to comment