Skip to content

Commit 1c3ee7d

Browse files
committed
own
1 parent acf300a commit 1c3ee7d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/cppcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
743743
}
744744

745745
// Parse comments and then remove them
746-
preprocessor.inlineSuppressions(tokens1, mSettings.nomsg);
746+
preprocessor.inlineSuppressions(tokens1, mSuppressions);
747747
if (mSettings.dump || !mSettings.addons.empty()) {
748748
mSuppressions.dump(dumpProlog);
749749
}

test/testpreprocessor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,16 +1963,16 @@ class TestPreprocessor : public TestFixture {
19631963
auto suppressions = inlineSuppr.getSuppressions();
19641964
ASSERT_EQUALS(2, suppressions.size());
19651965

1966-
auto suppr = supprs.front();
1967-
supprs.pop_front();
1966+
auto suppr = suppressions.front();
1967+
suppressions.pop_front();
19681968
ASSERT_EQUALS("missingInclude", suppr.errorId);
19691969
ASSERT_EQUALS("test.c", suppr.fileName);
19701970
ASSERT_EQUALS(2, suppr.lineNumber);
19711971
ASSERT_EQUALS(false, suppr.checked);
19721972
ASSERT_EQUALS(false, suppr.matched);
19731973

1974-
suppr = supprs.front();
1975-
supprs.pop_front();
1974+
suppr = suppressions.front();
1975+
suppressions.pop_front();
19761976
ASSERT_EQUALS("missingIncludeSystem", suppr.errorId);
19771977
ASSERT_EQUALS("test.c", suppr.fileName);
19781978
ASSERT_EQUALS(4, suppr.lineNumber);

0 commit comments

Comments
 (0)