diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp index 18e36270ce5..7af165a9c6e 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp @@ -396,7 +396,7 @@ QVariant ObjectNodeInstance::convertEnumToValue(const QVariant &value, const Pro QQmlExpression expression(context(), object(), enumeration.toString()); adjustedValue = expression.evaluate(); if (expression.hasError()) - qDebug() << "Enumeration can not be evaluated:" << object() << name << enumeration; + qDebug() << "Enumeration cannot be evaluated:" << object() << name << enumeration; } return adjustedValue; } diff --git a/src/app/main.cpp b/src/app/main.cpp index 9c61cb323d9..0400f523c36 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -185,7 +185,7 @@ static inline int askMsgSendFailed() QMessageBox::Retry); } -// taken from utils/fileutils.cpp. We can not use utils here since that depends app_version.h. +// taken from utils/fileutils.cpp. We cannot use utils here since that depends app_version.h. static bool copyRecursively(const QString &srcFilePath, const QString &tgtFilePath) { diff --git a/src/libs/qtcreatorcdbext/containers.cpp b/src/libs/qtcreatorcdbext/containers.cpp index 7ea4a2ddafe..809259f04d9 100644 --- a/src/libs/qtcreatorcdbext/containers.cpp +++ b/src/libs/qtcreatorcdbext/containers.cpp @@ -77,7 +77,7 @@ static inline std::string fixInnerType(const std::string &type, std::string stripped = SymbolGroupValue::stripConst(SymbolGroupValue::stripClassPrefixes(type)); - // Unfortunately the cdb can not handle the vc exclusiv 64 bit integer + // Unfortunately the cdb cannot handle the vc exclusiv 64 bit integer // "__int64" but works fine with "int64", so we have to strip down "__" const size_t __int64pos = stripped.find("__int64"); if (__int64pos != std::string::npos) diff --git a/src/libs/qtcreatorcdbext/pycdbextmodule.cpp b/src/libs/qtcreatorcdbext/pycdbextmodule.cpp index ef47f383687..fc55076ea68 100644 --- a/src/libs/qtcreatorcdbext/pycdbextmodule.cpp +++ b/src/libs/qtcreatorcdbext/pycdbextmodule.cpp @@ -352,7 +352,7 @@ static PyObject *cdbext_reportResult(PyObject *, PyObject *args) static PyMethodDef cdbextMethods[] = { {"parseAndEvaluate", cdbext_parseAndEvaluate, METH_VARARGS, - "Returns value of expression or None if the expression can not be resolved"}, + "Returns value of expression or None if the expression cannot be resolved"}, {"resolveSymbol", cdbext_resolveSymbol, METH_VARARGS, "Returns a list of symbol names matching the given pattern"}, {"getNameByAddress", cdbext_getNameByAddress, METH_VARARGS, @@ -360,7 +360,7 @@ static PyMethodDef cdbextMethods[] = { {"getAddressByName", cdbext_getAddressByName, METH_VARARGS, "Returns the address of the symbol with the given name"}, {"lookupType", cdbext_lookupType, METH_VARARGS, - "Returns type object or None if the type can not be resolved"}, + "Returns type object or None if the type cannot be resolved"}, {"listOfLocals", cdbext_listOfLocals, METH_VARARGS, "Returns list of values that are currently in scope"}, {"listOfModules", cdbext_listOfModules, METH_NOARGS, diff --git a/src/libs/sqlite/sqlitedatabasebackend.cpp b/src/libs/sqlite/sqlitedatabasebackend.cpp index 0e088c549df..a42564aca56 100644 --- a/src/libs/sqlite/sqlitedatabasebackend.cpp +++ b/src/libs/sqlite/sqlitedatabasebackend.cpp @@ -241,7 +241,7 @@ void DatabaseBackend::cacheTextEncoding() void DatabaseBackend::checkForOpenDatabaseWhichCanBeClosed() { if (m_databaseHandle == nullptr) - throw DatabaseIsAlreadyClosed("SqliteDatabaseBackend::close: database is not open so it can not be closed."); + throw DatabaseIsAlreadyClosed("SqliteDatabaseBackend::close: database is not open so it cannot be closed."); } void DatabaseBackend::checkDatabaseClosing(int resultCode) diff --git a/src/plugins/android/androidconfigurations.cpp b/src/plugins/android/androidconfigurations.cpp index b3420536449..3da456cf377 100644 --- a/src/plugins/android/androidconfigurations.cpp +++ b/src/plugins/android/androidconfigurations.cpp @@ -793,7 +793,7 @@ QVersionNumber AndroidConfig::ndkVersion() const { QVersionNumber version; if (!m_ndkLocation.exists()) { - qCDebug(avdConfigLog) << "Can not find ndk version. Check NDK path." + qCDebug(avdConfigLog) << "Cannot find ndk version. Check NDK path." << m_ndkLocation.toString(); return version; } @@ -826,11 +826,11 @@ QVersionNumber AndroidConfig::ndkVersion() const version = QVersionNumber::fromString(QString("%1.%2.0").arg(major) .arg((int)minor[0].toLatin1() - 97)); } else { - qCDebug(avdConfigLog) << "Can not find ndk version. Can not parse RELEASE.TXT." + qCDebug(avdConfigLog) << "Cannot find ndk version. Cannot parse RELEASE.TXT." << content; } } else { - qCDebug(avdConfigLog) << "Can not find ndk version." << errorString; + qCDebug(avdConfigLog) << "Cannot find ndk version." << errorString; } } return version; diff --git a/src/plugins/android/androidmanager.cpp b/src/plugins/android/androidmanager.cpp index eb453c7476b..2ce812d6753 100644 --- a/src/plugins/android/androidmanager.cpp +++ b/src/plugins/android/androidmanager.cpp @@ -218,7 +218,7 @@ QString AndroidManager::activityName(ProjectExplorer::Target *target) /*! Returns the minimum Android API level set for the APK. Minimum API level - of the kit is returned if the manifest file of the APK can not be found + of the kit is returned if the manifest file of the APK cannot be found or parsed. */ int AndroidManager::minimumSDK(ProjectExplorer::Target *target) diff --git a/src/plugins/android/androidrunnerworker.cpp b/src/plugins/android/androidrunnerworker.cpp index 87e4a5c36d9..78cc6ffcff7 100644 --- a/src/plugins/android/androidrunnerworker.cpp +++ b/src/plugins/android/androidrunnerworker.cpp @@ -426,7 +426,7 @@ void AndroidRunnerWorker::asyncStartHelper() runAdb({"shell", "run-as", m_packageName, "chmod", "a+x", packageDir}); if (m_gdbserverPath.isEmpty() || !uploadFile(m_gdbserverPath, "gdbserver")) { - emit remoteProcessFinished(tr("Can not find/copy C++ debug server.")); + emit remoteProcessFinished(tr("Cannot find/copy C++ debug server.")); return; } diff --git a/src/plugins/android/androidsdkmanager.cpp b/src/plugins/android/androidsdkmanager.cpp index d293960b627..00f866d47e9 100644 --- a/src/plugins/android/androidsdkmanager.cpp +++ b/src/plugins/android/androidsdkmanager.cpp @@ -627,7 +627,7 @@ AndroidSdkPackage *SdkManagerOutputParser::parsePlatform(const QStringList &data if (parseAbstractData(packageData, data, 2, "Platform")) { int apiLevel = platformNameToApiLevel(packageData.headerParts.at(1)); if (apiLevel == -1) { - qCDebug(sdkManagerLog) << "Platform: Can not parse api level:"<< data; + qCDebug(sdkManagerLog) << "Platform: Cannot parse api level:"<< data; return nullptr; } platform = new SdkPlatform(packageData.revision, data.at(0), apiLevel); @@ -647,7 +647,7 @@ QPair SdkManagerOutputParser::parseSystemImage(const QString if (parseAbstractData(packageData, data, 4, "System-image")) { int apiLevel = platformNameToApiLevel(packageData.headerParts.at(1)); if (apiLevel == -1) { - qCDebug(sdkManagerLog) << "System-image: Can not parse api level:"<< data; + qCDebug(sdkManagerLog) << "System-image: Cannot parse api level:"<< data; return result; } auto image = new SystemImage(packageData.revision, data.at(0), diff --git a/src/plugins/android/androidsignaloperation.cpp b/src/plugins/android/androidsignaloperation.cpp index 382db6ca07e..bb54b833ab0 100644 --- a/src/plugins/android/androidsignaloperation.cpp +++ b/src/plugins/android/androidsignaloperation.cpp @@ -57,7 +57,7 @@ void Android::Internal::AndroidSignalOperation::adbFindRunAsFinished(int exitCod m_errorMessage += QLatin1String(" adb process error: ") + adbError; } if (runAs.isEmpty() || !m_errorMessage.isEmpty()) { - m_errorMessage = QLatin1String("Can not find User for process: ") + m_errorMessage = QLatin1String("Cannot find User for process: ") + QString::number(m_pid) + m_errorMessage; m_state = Idle; @@ -90,7 +90,7 @@ void Android::Internal::AndroidSignalOperation::adbKillFinished(int exitCode, m_errorMessage = QString::fromLatin1(m_adbProcess->readAllStandardError()); } if (!m_errorMessage.isEmpty()) { - m_errorMessage = QLatin1String("Can not kill process: ") + QString::number(m_pid) + m_errorMessage = QLatin1String("Cannot kill process: ") + QString::number(m_pid) + m_errorMessage; } m_state = Idle; diff --git a/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp b/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp index 3646b066b5d..d5757b5e6de 100644 --- a/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp +++ b/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp @@ -567,7 +567,7 @@ QList CMakeConfigurationKitInformation::validate(const Kit *k) const Utils::FileName tcCPath; Utils::FileName tcCxxPath; foreach (const CMakeConfigItem &i, config) { - // Do not use expand(QByteArray) as we can not be sure the input is latin1 + // Do not use expand(QByteArray) as we cannot be sure the input is latin1 const Utils::FileName expandedValue = Utils::FileName::fromString(k->macroExpander()->expand(QString::fromUtf8(i.value))); if (i.key == CMAKE_QMAKE_KEY) diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index 598a0f7b4a8..70a6bc19b59 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -170,7 +170,7 @@ CMakeProject::CMakeProject(const FileName &fileName) : Project(Constants::CMAKEM if (senderBc && senderBc->isActive()) { // The environment on our BC has changed: - // * Error out if the reader updates, can not happen since all BCs share a target/kit. + // * Error out if the reader updates, cannot happen since all BCs share a target/kit. // * run cmake without configuration arguments if the reader stays m_buildDirManager.setParametersAndRequestParse( BuildDirParameters(senderBc), @@ -183,7 +183,7 @@ CMakeProject::CMakeProject(const FileName &fileName) : Project(Constants::CMAKEM if (senderBc && senderBc->isActive() && senderBc == m_buildDirManager.buildConfiguration()) { // The build directory of our BC has changed: - // * Error out if the reader updates, can not happen since all BCs share a target/kit. + // * Error out if the reader updates, cannot happen since all BCs share a target/kit. // * run cmake without configuration arguments if the reader stays // If no configuration exists, then the arguments will get added automatically by // the reader. @@ -198,7 +198,7 @@ CMakeProject::CMakeProject(const FileName &fileName) : Project(Constants::CMAKEM if (senderBc && senderBc->isActive() && senderBc == m_buildDirManager.buildConfiguration()) { // The CMake configuration has changed on our BC: - // * Error out if the reader updates, can not happen since all BCs share a target/kit. + // * Error out if the reader updates, cannot happen since all BCs share a target/kit. // * run cmake with configuration arguments if the reader stays m_buildDirManager.setParametersAndRequestParse( BuildDirParameters(senderBc), diff --git a/src/plugins/coreplugin/idocument.cpp b/src/plugins/coreplugin/idocument.cpp index fefff6a701b..e5a78b32d5b 100644 --- a/src/plugins/coreplugin/idocument.cpp +++ b/src/plugins/coreplugin/idocument.cpp @@ -126,7 +126,7 @@ Id IDocument::id() const * In that case, the contents of the auto save file should be loaded, the file name of the * IDocument should be set to \a fileName, and the document state be set to modified. * If the editor is opened from a regular file, \a fileName and \a realFileName are the same. - * Use \a errorString to return an error message, if this document can not handle the + * Use \a errorString to return an error message, if this document cannot handle the * file contents. * Returns whether the file was opened and read successfully. */ diff --git a/src/plugins/coreplugin/infobar.cpp b/src/plugins/coreplugin/infobar.cpp index 3ca512c5549..53c0cc4abe5 100644 --- a/src/plugins/coreplugin/infobar.cpp +++ b/src/plugins/coreplugin/infobar.cpp @@ -111,7 +111,7 @@ void InfoBar::suppressInfo(Id id) m_suppressed << id; } -// Info can not be added more than once, or if it is suppressed +// Info cannot be added more than once, or if it is suppressed bool InfoBar::canInfoBeAdded(Id id) const { return !containsInfo(id) && !m_suppressed.contains(id) && !globallySuppressed.contains(id); diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 96206aa7217..d8b99bc934b 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -610,7 +610,7 @@ void CdbEngine::runEngine() const auto cb = [this](const DebuggerResponse &r) { handleBreakInsert(r, Breakpoint()); }; if (boolSetting(CdbBreakOnCrtDbgReport)) { Abi::OSFlavor flavor = runParameters().toolChainAbi.osFlavor(); - // CrtDebugReport can not be safely resolved for vc 19 + // CrtDebugReport cannot be safely resolved for vc 19 if ((flavor > Abi::WindowsMsvc2005Flavor && flavor <= Abi::WindowsMsvc2013Flavor) || flavor > Abi::WindowsMSysFlavor || flavor <= Abi::WindowsCEFlavor) { const QString module = msvcRunTime(flavor); @@ -2748,7 +2748,7 @@ void CdbEngine::setupScripting(const DebuggerResponse &response) } if (!ok) { m_pythonVersion = 0; - showMessage(QString("Can not parse sys.version:\n%1").arg(verOutput), LogWarning); + showMessage(QString("Cannot parse sys.version:\n%1").arg(verOutput), LogWarning); return; } diff --git a/src/plugins/ios/iosbuildsettingswidget.cpp b/src/plugins/ios/iosbuildsettingswidget.cpp index 8b417ab3905..f7c90b3aa9a 100644 --- a/src/plugins/ios/iosbuildsettingswidget.cpp +++ b/src/plugins/ios/iosbuildsettingswidget.cpp @@ -126,7 +126,7 @@ void IosBuildSettingsWidget::setDefaultSigningIdentfier(const QString &identifie } else { // Reset to default ui->m_signEntityCombo->setCurrentIndex(0); - qCDebug(iosSettingsLog) << "Can not find default" + qCDebug(iosSettingsLog) << "Cannot find default" << (ui->m_autoSignCheckbox->isChecked() ? "team": "provisioning profile") << ". Identifier: " << identifier; } diff --git a/src/plugins/ios/simulatorcontrol.cpp b/src/plugins/ios/simulatorcontrol.cpp index f3f048d02e1..ebe9ece83f4 100644 --- a/src/plugins/ios/simulatorcontrol.cpp +++ b/src/plugins/ios/simulatorcontrol.cpp @@ -107,7 +107,7 @@ static bool launchSimulator(const QString &simUdid) { return runSimCtlCommand(QStringList({"boot", simUdid}), nullptr); } } else { - qCDebug(simulatorLog) << "Can not start Simulator device." + qCDebug(simulatorLog) << "Cannot start Simulator device." << "Error probing Simulator.app instance"; return false; } @@ -438,7 +438,7 @@ void SimulatorControlPrivate::startSimulator(QFutureInterface