This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Recognize single character needles for absl::StrContains.
ClosedPublic

Authored by ckennelly on Dec 7 2020, 8:31 PM.

Details

Summary

Commit fbdff6f3ae0b in the Abseil tree adds an overload for
absl::StrContains to accept a single character needle for optimized
lookups.

Diff Detail

Event Timeline

ckennelly created this revision.Dec 7 2020, 8:31 PM
ckennelly requested review of this revision.Dec 7 2020, 8:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2020, 8:31 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Dec 8 2020, 12:05 AM
This revision is now accepted and ready to land.Dec 8 2020, 12:05 AM
This revision was landed with ongoing or failed builds.Dec 8 2020, 7:01 AM
This revision was automatically updated to reflect the committed changes.