mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 09:31:59 +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)
|
||||
auto result = std::move(it->second);
|
||||
indexes.erase(it);
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
|
||||
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,
|
||||
bool dump_ast) {
|
||||
if (!config->enableIndexing)
|
||||
return {};
|
||||
return nullopt;
|
||||
|
||||
file = NormalizePath(file);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user