aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2023-03-12 21:42:52 +0000
committerPiotr Zegar <piotr.zegar@nokia.com>2023-03-12 21:42:53 +0000
commit57b78faa9eb08017d95bb4e43242648953b08c13 (patch)
tree01016590e1a13deb0c7efe7d4c476a29c8b77aa3 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent4483e77b3198acc9b7a96db1194797e4855d5f01 (diff)
downloadllvm-57b78faa9eb08017d95bb4e43242648953b08c13.zip
llvm-57b78faa9eb08017d95bb4e43242648953b08c13.tar.gz
llvm-57b78faa9eb08017d95bb4e43242648953b08c13.tar.bz2
[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
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
0 files changed, 0 insertions, 0 deletions