This revision was automatically updated to reflect the committed changes. Closed by commit rL346308: [clangd] [NFC] Fix clang-tidy warnings. (authored by kadircet, committed by ). Herald added a subscriber: llvm-commits.
Repository: rL LLVM https://reviews.llvm.org/D54157 Files: clang-tools-extra/trunk/clangd/index/FileIndex.cpp clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp Index: clang-tools-extra/trunk/clangd/index/FileIndex.cpp =================================================================== --- clang-tools-extra/trunk/clangd/index/FileIndex.cpp +++ clang-tools-extra/trunk/clangd/index/FileIndex.cpp @@ -126,7 +126,7 @@ for (const auto &Sym : *Slab) { auto I = Merged.try_emplace(Sym.ID, Sym); if (!I.second) - I.first->second = mergeSymbol(std::move(I.first->second), Sym); + I.first->second = mergeSymbol(I.first->second, Sym); } } SymsStorage.reserve(Merged.size()); Index: clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp =================================================================== --- clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp +++ clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp @@ -43,7 +43,7 @@ void f_b() { (void)common; })cpp"; - BackgroundIndex Idx(Context::empty(), "", FS, /*URISchmes=*/{"unittest"}); + BackgroundIndex Idx(Context::empty(), "", FS, /*URISchemes=*/{"unittest"}); tooling::CompileCommand Cmd; Cmd.Filename = testPath("root/A.cc");
Index: clang-tools-extra/trunk/clangd/index/FileIndex.cpp =================================================================== --- clang-tools-extra/trunk/clangd/index/FileIndex.cpp +++ clang-tools-extra/trunk/clangd/index/FileIndex.cpp @@ -126,7 +126,7 @@ for (const auto &Sym : *Slab) { auto I = Merged.try_emplace(Sym.ID, Sym); if (!I.second) - I.first->second = mergeSymbol(std::move(I.first->second), Sym); + I.first->second = mergeSymbol(I.first->second, Sym); } } SymsStorage.reserve(Merged.size()); Index: clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp =================================================================== --- clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp +++ clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp @@ -43,7 +43,7 @@ void f_b() { (void)common; })cpp"; - BackgroundIndex Idx(Context::empty(), "", FS, /*URISchmes=*/{"unittest"}); + BackgroundIndex Idx(Context::empty(), "", FS, /*URISchemes=*/{"unittest"}); tooling::CompileCommand Cmd; Cmd.Filename = testPath("root/A.cc");
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits