[all-commits] [llvm/llvm-project] 05674b: [clang-tidy] Use std:::string::find with std::stri...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Thu May 22 23:51:17 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 05674b21fed51a940b93e09b38d1833010f3f694
https://github.com/llvm/llvm-project/commit/05674b21fed51a940b93e09b38d1833010f3f694
Author: Kazu Hirata <kazu at google.com>
Date: 2025-05-22 (Thu, 22 May 2025)
Changed paths:
M clang-tools-extra/clang-tidy/llvm/HeaderGuardCheck.cpp
Log Message:
-----------
[clang-tidy] Use std:::string::find with std::string_view (NFC) (#141188)
std::string::rfind accepts anything that can be converted to
std::string_view starting in C++17. Since StringRef can be converted
to std::string_view, we do not need to create a temporary instance of
std::string here.
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