[all-commits] [llvm/llvm-project] 16622d: [clang-tidy] Recognize single character needles fo...

Chris Kennelly via All-commits all-commits at lists.llvm.org
Tue Dec 8 07:01:18 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16622d535c021b566c1304b6388a6399e3333606
      https://github.com/llvm/llvm-project/commit/16622d535c021b566c1304b6388a6399e3333606
  Author: Chris Kennelly <ckennelly at ckennelly.com>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/abseil/StringFindStrContainsCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil-string-find-str-contains.cpp

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

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

Reviewed By: hokein

Differential Revision: https://reviews.llvm.org/D92810




More information about the All-commits mailing list