mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-07 08:44:55 +00:00
Merge 6a34664f32
into 2ad71f1058
This commit is contained in:
commit
0b6a448df9
@ -260,15 +260,16 @@ findDbForPathEnding(const std::string &path,
|
|||||||
bool runIndexTests(const std::string &filter_path, bool enable_update) {
|
bool runIndexTests(const std::string &filter_path, bool enable_update) {
|
||||||
gTestOutputMode = true;
|
gTestOutputMode = true;
|
||||||
std::string version = LLVM_VERSION_STRING;
|
std::string version = LLVM_VERSION_STRING;
|
||||||
|
const int majorVersion = LLVM_VERSION_MAJOR;
|
||||||
|
|
||||||
// Index tests change based on the version of clang used.
|
// Index tests change based on the version of clang used.
|
||||||
static const char kRequiredClangVersion[] = "6.0.0";
|
const int kMinRequiredClangVersion = 6;
|
||||||
if (version != kRequiredClangVersion &&
|
if (majorVersion < kMinRequiredClangVersion &&
|
||||||
version.find("svn") == std::string::npos) {
|
version.find("svn") == std::string::npos) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Index tests must be run using clang version %s, ccls is running "
|
"Index tests must be run using clang major version >= %d, ccls is running "
|
||||||
"with %s\n",
|
"with %s\n",
|
||||||
kRequiredClangVersion, version.c_str());
|
kMinRequiredClangVersion, version.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,6 +46,9 @@ private:
|
|||||||
|
|
||||||
struct MultiQueueWaiter {
|
struct MultiQueueWaiter {
|
||||||
std::condition_variable_any cv;
|
std::condition_variable_any cv;
|
||||||
|
~MultiQueueWaiter() {
|
||||||
|
cv.notify_all();
|
||||||
|
}
|
||||||
|
|
||||||
static bool hasState(std::initializer_list<BaseThreadQueue *> queues) {
|
static bool hasState(std::initializer_list<BaseThreadQueue *> queues) {
|
||||||
for (BaseThreadQueue *queue : queues) {
|
for (BaseThreadQueue *queue : queues) {
|
||||||
|
Loading…
Reference in New Issue
Block a user