aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-05-09 23:12:08 -0700
committerGitHub <noreply@github.com>2024-05-09 23:12:08 -0700
commit135d92f903161e66ff82ab846acfbc5015ef3096 (patch)
treedd42365523b6c2ba33e074734b95ab8ae8d8b91f /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent06ad86361ab29d344a5e2e22903c2739743c77be (diff)
downloadllvm-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