diff options
author | Kazu Hirata <kazu@google.com> | 2024-05-09 23:12:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-09 23:12:08 -0700 |
commit | 135d92f903161e66ff82ab846acfbc5015ef3096 (patch) | |
tree | dd42365523b6c2ba33e074734b95ab8ae8d8b91f /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | 06ad86361ab29d344a5e2e22903c2739743c77be (diff) | |
download | llvm-135d92f903161e66ff82ab846acfbc5015ef3096.zip llvm-135d92f903161e66ff82ab846acfbc5015ef3096.tar.gz llvm-135d92f903161e66ff82ab846acfbc5015ef3096.tar.bz2 |
[Driver] Use StringRef::operator== instead of StringRef::equals (NFC) (#91698)
I'm planning to remove StringRef::equals in favor of
StringRef::operator==.
- StringRef::operator==/!= outnumber StringRef::equals by a factor of
13 under clang/ in terms of their usage.
- The elimination of StringRef::equals brings StringRef closer to
std::string_view, which has operator== but not equals.
- S == "foo" is more readable than S.equals("foo"), especially for
!Long.Expression.equals("str") vs Long.Expression != "str".
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions