forked from qt-creator/qt-creator
ClangTools: Add settings for build project dependency
All Clang tools get support for running project build before themselves or skipping that step. Before this change static analyzer always ran it and ClangTidy+Clazy tool always skipped. Change-Id: Idb9fbc27f0589472abb0f9d207857eb79c0079fd Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -49,6 +49,12 @@ ClangToolsConfigWidget::ClangToolsConfigWidget(
|
||||
connect(m_ui->simultaneousProccessesSpinBox,
|
||||
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
|
||||
[settings](int count) { settings->setSimultaneousProcesses(count); });
|
||||
|
||||
m_ui->buildBeforeAnalysis->setCheckState(settings->savedBuildBeforeAnalysis()
|
||||
? Qt::Checked : Qt::Unchecked);
|
||||
connect(m_ui->buildBeforeAnalysis, &QCheckBox::toggled, [settings](bool checked) {
|
||||
settings->setBuildBeforeAnalysis(checked);
|
||||
});
|
||||
}
|
||||
|
||||
ClangToolsConfigWidget::~ClangToolsConfigWidget()
|
||||
|
||||
Reference in New Issue
Block a user