mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 09:31:59 +00:00
Fix clang compile
This commit is contained in:
parent
d1287f8fc8
commit
629876007e
@ -18,9 +18,8 @@ bool StartsWith(const std::string& value, const std::string& start);
|
|||||||
bool EndsWith(const std::string& value, const std::string& ending);
|
bool EndsWith(const std::string& value, const std::string& ending);
|
||||||
std::string ReplaceAll(const std::string& source, const std::string& from, const std::string& to);
|
std::string ReplaceAll(const std::string& source, const std::string& from, const std::string& to);
|
||||||
|
|
||||||
template <typename TValues>
|
inline bool StartsWithAny(const std::vector<std::string>& values, const std::string& start) {
|
||||||
bool StartsWithAny(const TValues& values, const std::string& start) {
|
return std::any_of(std::begin(values), std::end(values), [&start](const std::string& value) {
|
||||||
return std::any_of(std::begin(values), std::end(values), [&start](const auto& value) {
|
|
||||||
return StartsWith(value, start);
|
return StartsWith(value, start);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user