[all-commits] [llvm/llvm-project] e8f13f: Replace std::string::find == 0 with StringRef::sta...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Tue Mar 31 12:01:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e8f13f4f62f52067cadb55f3c746ccf9d26ee2ce
      https://github.com/llvm/llvm-project/commit/e8f13f4f62f52067cadb55f3c746ccf9d26ee2ce
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2020-03-31 (Tue, 31 Mar 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/AArch64.cpp
    M clang/unittests/Analysis/CloneDetectionTest.cpp
    M lldb/source/Core/Module.cpp
    M lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
    M lldb/source/Symbol/Variable.cpp

  Log Message:
  -----------
  Replace std::string::find == 0 with StringRef::startswith

This is both more readable and faster. Found by clang-tidy's
abseil-string-find-startswith.




More information about the All-commits mailing list