mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 19:07:08 +00:00
Explicitly use std::move to make clang 3.5 compile
This commit is contained in:
parent
a57798154d
commit
b5c9e22ad1
@ -68,7 +68,7 @@ struct TestIndexer : IIndexer {
|
|||||||
// specific file (atm it is always 1)
|
// specific file (atm it is always 1)
|
||||||
auto result = std::move(it->second);
|
auto result = std::move(it->second);
|
||||||
indexes.erase(it);
|
indexes.erase(it);
|
||||||
return result;
|
return std::move(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unordered_map<std::string, std::vector<std::unique_ptr<IndexFile>>>
|
std::unordered_map<std::string, std::vector<std::unique_ptr<IndexFile>>>
|
||||||
|
@ -1904,7 +1904,7 @@ optional<std::vector<std::unique_ptr<IndexFile>>> Parse(
|
|||||||
ClangIndex* index,
|
ClangIndex* index,
|
||||||
bool dump_ast) {
|
bool dump_ast) {
|
||||||
if (!config->enableIndexing)
|
if (!config->enableIndexing)
|
||||||
return {};
|
return nullopt;
|
||||||
|
|
||||||
file = NormalizePath(file);
|
file = NormalizePath(file);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user