forked from qt-creator/qt-creator
ClangTools: Make building before starting analysis default
...when switching to "Custom Settings" in Menu: Analyze > "Clang Tidy and Clazy...". Otherwise we might run into parse errors due not yet generated source files (e.g. "fatal error: 'ui_mainwindow.h' file not found"). Task-number: QTCREATORBUG-22382 Change-Id: I6f499fa8f8ab2fff08d19165e474d14305cfded5 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -87,7 +87,9 @@ void ClangToolsProjectSettings::load()
|
||||
m_useGlobalSettings = useGlobalVariant.isValid() ? useGlobalVariant.toBool() : true;
|
||||
m_diagnosticConfig = Core::Id::fromSetting(
|
||||
m_project->namedSettings(SETTINGS_KEY_DIAGNOSTIC_CONFIG));
|
||||
m_buildBeforeAnalysis = m_project->namedSettings(SETTINGS_KEY_BUILD_BEFORE_ANALYSIS).toBool();
|
||||
|
||||
const QVariant value = m_project->namedSettings(SETTINGS_KEY_BUILD_BEFORE_ANALYSIS);
|
||||
m_buildBeforeAnalysis = value.isValid() ? value.toBool() : true;
|
||||
|
||||
auto toFileName = [](const QString &s) { return Utils::FilePath::fromString(s); };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user