[all-commits] [llvm/llvm-project] 344afa: [Support] TrigramIndex::insert - pass std::String ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Jan 23 03:05:17 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 344afa853fcfcc085cb5c957b4a07c7ea013bb1b
      https://github.com/llvm/llvm-project/commit/344afa853fcfcc085cb5c957b4a07c7ea013bb1b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-01-23 (Sat, 23 Jan 2021)

  Changed paths:
    M llvm/include/llvm/Support/TrigramIndex.h
    M llvm/lib/Support/TrigramIndex.cpp

  Log Message:
  -----------
  [Support] TrigramIndex::insert - pass std::String argument by const reference. NFCI.

Avoid string copies and fix clang-tidy warning.




More information about the All-commits mailing list