This commit is contained in:
parent
6817113665
commit
3ac89468ea
|
@ -187,9 +187,16 @@ void ComplianceReportDialog::save()
|
|||
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,
|
||||
"--project-version=" + projectVersion,
|
||||
"--output-file=" + outFile};
|
||||
"--output-file=" + outFile,
|
||||
"--suppressions=" + suppressions.join(",")};
|
||||
|
||||
args << ("--" + std);
|
||||
|
||||
|
|
|
@ -1806,6 +1806,7 @@ void MainWindow::newProjectFile()
|
|||
mProjectFile = new ProjectFile(this);
|
||||
mProjectFile->setActiveProject();
|
||||
mProjectFile->setFilename(filepath);
|
||||
mProjectFile->setProjectName(filename.left(filename.indexOf(".")));
|
||||
mProjectFile->setBuildDir(filename.left(filename.indexOf(".")) + "-cppcheck-build-dir");
|
||||
|
||||
ProjectFileDialog dlg(mProjectFile, isCppcheckPremium(), this);
|
||||
|
|
Loading…
Reference in New Issue