forked from qt-creator/qt-creator
ClangCodeModel: Remove unneeded code
This was liblclang-specific. Change-Id: I3fe8a8d2d49b1c7b92a54a90864e4ead7152e4ae Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "clangdtests.h"
|
||||
|
||||
#include "clangbatchfileprocessor.h"
|
||||
#include "../clangdclient.h"
|
||||
#include "../clangmodelmanagersupport.h"
|
||||
|
||||
@@ -69,6 +68,27 @@ static QString qrcPath(const QString &relativeFilePath)
|
||||
return ":/unittests/ClangCodeModel/" + relativeFilePath;
|
||||
}
|
||||
|
||||
static Q_LOGGING_CATEGORY(debug, "qtc.clangcodemodel.batch", QtWarningMsg);
|
||||
|
||||
static int timeOutFromEnvironmentVariable()
|
||||
{
|
||||
bool isConversionOk = false;
|
||||
const int intervalAsInt = Utils::qtcEnvironmentVariableIntValue("QTC_CLANG_BATCH_TIMEOUT",
|
||||
&isConversionOk);
|
||||
if (!isConversionOk) {
|
||||
qCDebug(debug, "Environment variable QTC_CLANG_BATCH_TIMEOUT is not set, assuming 30000.");
|
||||
return 30000;
|
||||
}
|
||||
|
||||
return intervalAsInt;
|
||||
}
|
||||
|
||||
int timeOutInMs()
|
||||
{
|
||||
static int timeOut = timeOutFromEnvironmentVariable();
|
||||
return timeOut;
|
||||
}
|
||||
|
||||
ClangdTest::~ClangdTest()
|
||||
{
|
||||
EditorManager::closeAllEditors(false);
|
||||
|
||||
Reference in New Issue
Block a user