forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/11.0' into HEAD
Change-Id: I3b6a4bd860c11324d989818d9010f07faaac677a
This commit is contained in:
@@ -111,8 +111,6 @@ expected_str<qint64> ProcessStubCreator::startStubProcess(const ProcessSetupData
|
||||
if (detached)
|
||||
QObject::connect(process, &Process::done, process, &Process::deleteLater);
|
||||
|
||||
QObject::connect(process, &Process::done, m_interface, &TerminalInterface::onStubExited);
|
||||
|
||||
process->setWorkingDirectory(setupData.m_workingDirectory);
|
||||
|
||||
if constexpr (HostOsInfo::isWindowsHost()) {
|
||||
|
@@ -281,6 +281,8 @@ void CompilerOptionsBuilderTest::testClangHeadersAndCppIncludePathsOrderLinux()
|
||||
t.builtIn("/usr/local/include"),
|
||||
t.builtIn("/usr/lib/gcc/x86_64-linux-gnu/4.8/include"),
|
||||
t.builtIn("/usr/include/x86_64-linux-gnu"),
|
||||
t.builtIn("/usr/lib64/clang/16/include"),
|
||||
t.builtIn("/usr/lib/clang/15.0.7/include"),
|
||||
t.builtIn("/usr/include")};
|
||||
CompilerOptionsBuilder compilerOptionsBuilder(t.finalize(), UseSystemHeader::No,
|
||||
UseTweakedHeaderPaths::Yes, UseLanguageDefines::No, UseBuildSystemWarnings::No,
|
||||
|
@@ -104,7 +104,7 @@ bool isClangSystemHeaderPath(const HeaderPath &headerPath)
|
||||
// For example GCC on macOS uses system clang include path which makes clang code model
|
||||
// include incorrect system headers.
|
||||
static const QRegularExpression clangIncludeDir(
|
||||
R"(\A.*/lib\d*/clang/\d+\.\d+(\.\d+)?/include\z)");
|
||||
R"(\A.*/lib\d*/clang/\d+(\.\d+){0,2}/include\z)");
|
||||
return clangIncludeDir.match(headerPath.path).hasMatch();
|
||||
}
|
||||
|
||||
|
@@ -161,8 +161,11 @@ void CtfVisualizerTool::loadJson()
|
||||
auto *task = new QFuture<void>(futureInterface);
|
||||
|
||||
QThread *thread = QThread::create([this, filename, futureInterface]() {
|
||||
m_traceManager->load(filename);
|
||||
|
||||
try {
|
||||
m_traceManager->load(filename);
|
||||
} catch (...) {
|
||||
// nlohmann::json can throw exceptions when requesting type that is wrong
|
||||
}
|
||||
m_modelAggregator->moveToThread(QApplication::instance()->thread());
|
||||
m_modelAggregator->setParent(this);
|
||||
futureInterface->reportFinished();
|
||||
|
@@ -1450,7 +1450,7 @@ void GdbEngine::handleStop2(const GdbMi &data)
|
||||
|
||||
void GdbEngine::handleStop3()
|
||||
{
|
||||
if (terminal() && state() != InferiorRunOk) {
|
||||
if (!terminal() || state() != InferiorRunOk) {
|
||||
DebuggerCommand cmd("-thread-info", Discardable);
|
||||
cmd.callback = CB(handleThreadInfo);
|
||||
runCommand(cmd);
|
||||
|
Submodule src/shared/qbs updated: b607fac54e...40d3048084
Reference in New Issue
Block a user