[clang-tools-extra] [clang-tidy] Rename performance-faster-string-find to performance-prefer-single-char-overloads (PR #186946)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 29 22:42:39 PDT 2026
================
@@ -91,6 +92,13 @@ void FasterStringFindCheck::check(const MatchFinder::MatchResult &Result) {
"efficient overload accepting a character")
<< FindFunc
<< FixItHint::CreateReplacement(Literal->getSourceRange(), *Replacement);
+
+ if (getID() == "performance-faster-string-find")
+ diag(Literal->getBeginLoc(),
+ "performance-faster-string-find is deprecated and will be removed in "
+ "future release, consider using "
+ "performance-prefer-single-char-overloads",
+ DiagnosticIDs::Note);
----------------
localspook wrote:
Sounds good to me ^_^
https://github.com/llvm/llvm-project/pull/186946
More information about the cfe-commits
mailing list