diff options
author | Kazu Hirata <kazu@google.com> | 2024-08-27 06:46:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 06:46:20 -0700 |
commit | 71eebe9daaf5d2068606640a6040775020bc36e9 (patch) | |
tree | 1aee9b3f8b62407ee4e3b6ea09d3058fd59ea8e5 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
parent | 78505ade2c2e7d4d180e110442e0b074217877c8 (diff) | |
download | llvm-71eebe9daaf5d2068606640a6040775020bc36e9.zip llvm-71eebe9daaf5d2068606640a6040775020bc36e9.tar.gz llvm-71eebe9daaf5d2068606640a6040775020bc36e9.tar.bz2 |
[llvm] Prefer StringRef::substr to StringRef::slice (NFC) (#106190)
S.substr(N, M) is simpler than S.slice(N, N + M). Also, substr is
probably better recognizable than slice thanks to
std::string_view::substr.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions