[Support] TrigramIndex::insert - pass std::String argument by const reference. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 23 Jan 2021 11:03:43 +0000 (11:03 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 23 Jan 2021 11:04:00 +0000 (11:04 +0000)
commit344afa853fcfcc085cb5c957b4a07c7ea013bb1b
tree7424f75c035ab05bb50779003b99c83a4e1d7778
parentd4ce062340064c3f73b8f6136c7350a5abe83cac
[Support] TrigramIndex::insert - pass std::String argument by const reference. NFCI.

Avoid string copies and fix clang-tidy warning.
llvm/include/llvm/Support/TrigramIndex.h
llvm/lib/Support/TrigramIndex.cpp