mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 03:34:25 +03:00
Fix 'unqualified call to std::move' errors in clang 15+
This commit is contained in:
@@ -98,7 +98,7 @@ public:
|
||||
const FDREngineDescription &eng_in,
|
||||
bool make_small_in, const Grey &grey_in)
|
||||
: eng(eng_in), grey(grey_in), tab(eng_in.getTabSizeBytes()),
|
||||
lits(move(lits_in)), bucketToLits(move(bucketToLits_in)),
|
||||
lits(std::move(lits_in)), bucketToLits(std::move(bucketToLits_in)),
|
||||
make_small(make_small_in) {}
|
||||
|
||||
bytecode_ptr<FDR> build();
|
||||
@@ -504,7 +504,7 @@ map<BucketIndex, vector<LiteralIndex>> assignStringsToBuckets(
|
||||
map<BucketIndex, vector<LiteralIndex>> bucketToLits;
|
||||
size_t bucketCnt = buckets.size();
|
||||
for (size_t i = 0; i < bucketCnt; i++) {
|
||||
bucketToLits.emplace(bucketCnt - i - 1, move(buckets[i]));
|
||||
bucketToLits.emplace(bucketCnt - i - 1, std::move(buckets[i]));
|
||||
}
|
||||
|
||||
return bucketToLits;
|
||||
@@ -867,7 +867,7 @@ unique_ptr<HWLMProto> fdrBuildProtoInternal(u8 engType,
|
||||
auto bucketToLits = assignStringsToBuckets(lits, *des);
|
||||
addIncludedInfo(lits, des->getNumBuckets(), bucketToLits);
|
||||
auto proto =
|
||||
std::make_unique<HWLMProto>(engType, move(des), lits, bucketToLits,
|
||||
std::make_unique<HWLMProto>(engType, std::move(des), lits, bucketToLits,
|
||||
make_small);
|
||||
return proto;
|
||||
}
|
||||
|
@@ -309,7 +309,7 @@ setupFullConfs(const vector<hwlmLiteral> &lits,
|
||||
DEBUG_PRINTF("b %d sz %zu\n", b, vl.size());
|
||||
auto fc = getFDRConfirm(vl, make_small);
|
||||
totalConfirmSize += fc.size();
|
||||
bc2Conf.emplace(b, move(fc));
|
||||
bc2Conf.emplace(b, std::move(fc));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -88,7 +88,7 @@ public:
|
||||
const TeddyEngineDescription &eng_in, bool make_small_in,
|
||||
const Grey &grey_in)
|
||||
: eng(eng_in), grey(grey_in), lits(lits_in),
|
||||
bucketToLits(move(bucketToLits_in)), make_small(make_small_in) {}
|
||||
bucketToLits(std::move(bucketToLits_in)), make_small(make_small_in) {}
|
||||
|
||||
bytecode_ptr<FDR> build();
|
||||
};
|
||||
@@ -676,7 +676,7 @@ unique_ptr<HWLMProto> teddyBuildProtoHinted(
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return std::make_unique<HWLMProto>(engType, move(des), lits,
|
||||
return std::make_unique<HWLMProto>(engType, std::move(des), lits,
|
||||
bucketToLits, make_small);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user