forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.10'
Change-Id: Iaf27911e4e9fb762c1a24c84c458462bafe95728
This commit is contained in:
@@ -50,7 +50,7 @@ using namespace Utils;
|
||||
|
||||
namespace {
|
||||
|
||||
enum { debug = 0 };
|
||||
const bool debug = qEnvironmentVariable("QTC_DEBUG_CPPLOCATORFILTERTESTCASE") == "1";
|
||||
|
||||
QTC_DECLARE_MYTESTDATADIR("../../../tests/cpplocators/")
|
||||
|
||||
|
||||
@@ -48,10 +48,10 @@ static const TidyNode CLANG_TIDY_CHECKS_ROOT
|
||||
"",
|
||||
{
|
||||
{
|
||||
"android-",
|
||||
"abseil-",
|
||||
{
|
||||
{
|
||||
"uration-",
|
||||
"duration-",
|
||||
{
|
||||
"comparison",
|
||||
"division",
|
||||
@@ -65,18 +65,23 @@ static const TidyNode CLANG_TIDY_CHECKS_ROOT
|
||||
"subtraction"
|
||||
}
|
||||
},
|
||||
"aster-strsplit-delimiter",
|
||||
"faster-strsplit-delimiter",
|
||||
{
|
||||
"o-",
|
||||
"no-",
|
||||
{
|
||||
"internal-dependencies",
|
||||
"namespace"
|
||||
}
|
||||
},
|
||||
"edundant-strcat-calls",
|
||||
"tr-cat-append",
|
||||
"tring-find-startswith",
|
||||
"pgrade-duration-conversions",
|
||||
"redundant-strcat-calls",
|
||||
"str-cat-append",
|
||||
"string-find-startswith",
|
||||
"upgrade-duration-conversions"
|
||||
}
|
||||
},
|
||||
{
|
||||
"android-",
|
||||
{
|
||||
{
|
||||
"cloexec-",
|
||||
{
|
||||
@@ -715,7 +720,12 @@ static const TidyNode CLANG_TIDY_CHECKS_ROOT
|
||||
"copy-initialization",
|
||||
"value-param"
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"portability-",
|
||||
{
|
||||
"simd-intrinsics"
|
||||
}
|
||||
},
|
||||
@@ -773,8 +783,13 @@ static const TidyNode CLANG_TIDY_CHECKS_ROOT
|
||||
},
|
||||
"string-compare",
|
||||
"uniqueptr-delete-release",
|
||||
"uppercase-literal-suffix",
|
||||
"rary-objects"
|
||||
"uppercase-literal-suffix"
|
||||
}
|
||||
},
|
||||
{
|
||||
"zircon-",
|
||||
{
|
||||
"temporary-objects"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ static bool waitForProcessedEditorDocument_internal(CppEditorDocumentHandle *edi
|
||||
{
|
||||
QTC_ASSERT(editorDocument, return false);
|
||||
|
||||
QTime timer;
|
||||
QElapsedTimer timer;
|
||||
timer.start();
|
||||
|
||||
forever {
|
||||
@@ -208,7 +208,7 @@ CPlusPlus::Document::Ptr TestCase::waitForFileInGlobalSnapshot(const QString &fi
|
||||
QList<CPlusPlus::Document::Ptr> TestCase::waitForFilesInGlobalSnapshot(const QStringList &filePaths,
|
||||
int timeOutInMs)
|
||||
{
|
||||
QTime t;
|
||||
QElapsedTimer t;
|
||||
t.start();
|
||||
|
||||
QList<CPlusPlus::Document::Ptr> result;
|
||||
@@ -231,7 +231,7 @@ bool TestCase::waitUntilCppModelManagerIsAwareOf(Project *project, int timeOutIn
|
||||
if (!project)
|
||||
return false;
|
||||
|
||||
QTime t;
|
||||
QElapsedTimer t;
|
||||
t.start();
|
||||
|
||||
CppModelManager *modelManager = CppModelManager::instance();
|
||||
@@ -275,7 +275,7 @@ ProjectOpenerAndCloser::~ProjectOpenerAndCloser()
|
||||
foreach (Project *project, m_openProjects)
|
||||
ProjectExplorerPlugin::unloadProject(project);
|
||||
|
||||
QTime t;
|
||||
QElapsedTimer t;
|
||||
t.start();
|
||||
while (!hasGcFinished && t.elapsed() <= 30000)
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
Reference in New Issue
Block a user