@@ -1018,6 +1018,8 @@ QPair<bool,Settings> MainWindow::getCppcheckSettings()
1018
1018
QStringList dirs = mProjectFile ->getIncludeDirs ();
1019
1019
addIncludeDirs (dirs, result);
1020
1020
1021
+ result.inlineSuppressions = mProjectFile ->getInlineSuppression ();
1022
+
1021
1023
const QStringList defines = mProjectFile ->getDefines ();
1022
1024
for (const QString& define : defines) {
1023
1025
if (!result.userDefines .empty ())
@@ -1111,6 +1113,8 @@ QPair<bool,Settings> MainWindow::getCppcheckSettings()
1111
1113
result.setMisraRuleTexts (CheckThread::executeCommand);
1112
1114
}
1113
1115
}
1116
+ else
1117
+ result.inlineSuppressions = mSettings ->value (SETTINGS_INLINE_SUPPRESSIONS, false ).toBool ();
1114
1118
1115
1119
// Include directories (and files) are searched in listed order.
1116
1120
// Global include directories must be added AFTER the per project include
@@ -1135,7 +1139,6 @@ QPair<bool,Settings> MainWindow::getCppcheckSettings()
1135
1139
result.force = mSettings ->value (SETTINGS_CHECK_FORCE, 1 ).toBool ();
1136
1140
result.xml = false ;
1137
1141
result.jobs = mSettings ->value (SETTINGS_CHECK_THREADS, 1 ).toInt ();
1138
- result.inlineSuppressions = mSettings ->value (SETTINGS_INLINE_SUPPRESSIONS, false ).toBool ();
1139
1142
result.certainty .setEnabled (Certainty::inconclusive, mSettings ->value (SETTINGS_INCONCLUSIVE_ERRORS, false ).toBool ());
1140
1143
if (!mProjectFile || result.platform .type == Platform::Type::Unspecified)
1141
1144
result.platform .set ((Platform::Type) mSettings ->value (SETTINGS_CHECKED_PLATFORM, 0 ).toInt ());
0 commit comments