[all-commits] [llvm/llvm-project] f841ca: Use StringRef::operator== instead of StringRef::eq...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sun May 12 23:09:02 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f841ca0c355ae53c96f615996d0aff4648da8618
https://github.com/llvm/llvm-project/commit/f841ca0c355ae53c96f615996d0aff4648da8618
Author: Kazu Hirata <kazu at google.com>
Date: 2024-05-12 (Sun, 12 May 2024)
Changed paths:
M bolt/lib/Profile/DataAggregator.cpp
M bolt/lib/Profile/DataReader.cpp
M bolt/lib/Rewrite/DWARFRewriter.cpp
M bolt/lib/Rewrite/SDTRewriter.cpp
M clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
M clang-tools-extra/clang-tidy/bugprone/ForwardingReferenceOverloadCheck.cpp
M clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
M clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
M clang-tools-extra/clang-tidy/readability/SuspiciousCallArgumentCheck.cpp
M clang-tools-extra/clang-tidy/utils/IncludeSorter.cpp
M clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
M lld/COFF/DebugTypes.cpp
M lld/ELF/InputSection.cpp
M lld/ELF/Writer.cpp
M lld/MachO/Driver.cpp
M lld/wasm/InputChunks.cpp
Log Message:
-----------
Use StringRef::operator== instead of StringRef::equals (NFC) (#91864)
I'm planning to remove StringRef::equals in favor of
StringRef::operator==.
- StringRef::operator==/!= outnumber StringRef::equals by a factor of
276 under llvm-project/ 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".
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list