[clang-tools-extra] r343800 - [clangd] Add std::move for converting-return to satisfy older compilers
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 4 10:15:42 PDT 2018
Author: sammccall
Date: Thu Oct 4 10:15:41 2018
New Revision: 343800
URL: http://llvm.org/viewvc/llvm-project?rev=343800&view=rev
Log:
[clangd] Add std::move for converting-return to satisfy older compilers
Modified:
clang-tools-extra/trunk/unittests/clangd/TestTU.cpp
Modified: clang-tools-extra/trunk/unittests/clangd/TestTU.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/TestTU.cpp?rev=343800&r1=343799&r2=343800&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/TestTU.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/TestTU.cpp Thu Oct 4 10:15:41 2018
@@ -53,7 +53,7 @@ std::unique_ptr<SymbolIndex> TestTU::ind
auto Idx = llvm::make_unique<FileIndex>();
Idx->updatePreamble(Filename, AST.getASTContext(), AST.getPreprocessorPtr());
Idx->updateMain(Filename, AST);
- return Idx;
+ return std::move(Idx);
}
const Symbol &findSymbol(const SymbolSlab &Slab, llvm::StringRef QName) {
More information about the cfe-commits
mailing list