This commit is contained in:
parent
6817113665
commit
3ac89468ea
|
@ -187,9 +187,16 @@ void ComplianceReportDialog::save()
|
||||||
tempFiles.close();
|
tempFiles.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QStringList suppressions;
|
||||||
|
for (const auto& suppression: mProjectFile->getSuppressions()) {
|
||||||
|
if (!suppression.errorId.empty())
|
||||||
|
suppressions.append(QString::fromStdString(suppression.errorId));
|
||||||
|
}
|
||||||
|
|
||||||
QStringList args{"--project-name=" + projectName,
|
QStringList args{"--project-name=" + projectName,
|
||||||
"--project-version=" + projectVersion,
|
"--project-version=" + projectVersion,
|
||||||
"--output-file=" + outFile};
|
"--output-file=" + outFile,
|
||||||
|
"--suppressions=" + suppressions.join(",")};
|
||||||
|
|
||||||
args << ("--" + std);
|
args << ("--" + std);
|
||||||
|
|
||||||
|
|
|
@ -1806,6 +1806,7 @@ void MainWindow::newProjectFile()
|
||||||
mProjectFile = new ProjectFile(this);
|
mProjectFile = new ProjectFile(this);
|
||||||
mProjectFile->setActiveProject();
|
mProjectFile->setActiveProject();
|
||||||
mProjectFile->setFilename(filepath);
|
mProjectFile->setFilename(filepath);
|
||||||
|
mProjectFile->setProjectName(filename.left(filename.indexOf(".")));
|
||||||
mProjectFile->setBuildDir(filename.left(filename.indexOf(".")) + "-cppcheck-build-dir");
|
mProjectFile->setBuildDir(filename.left(filename.indexOf(".")) + "-cppcheck-build-dir");
|
||||||
|
|
||||||
ProjectFileDialog dlg(mProjectFile, isCppcheckPremium(), this);
|
ProjectFileDialog dlg(mProjectFile, isCppcheckPremium(), this);
|
||||||
|
|
Loading…
Reference in New Issue