MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / inlineSuppressions

Method inlineSuppressions

lib/preprocessor.cpp:339–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void Preprocessor::inlineSuppressions(SuppressionList &suppressions)
340{
341 if (!mSettings.inlineSuppressions)
342 return;
343 std::list<BadInlineSuppression> err;
344 ::addInlineSuppressions(mTokens, mSettings, suppressions, err);
345 for (const auto &filedata : mFileCache) {
346 ::addInlineSuppressions(filedata->tokens, mSettings, suppressions, err);
347 }
348 for (const BadInlineSuppression &bad : err) {
349 invalidSuppression(bad.location, bad.errmsg);
350 }
351}
352
353std::vector<RemarkComment> Preprocessor::getRemarkComments() const
354{

Callers 2

checkInternalMethod · 0.80
getcodeMethod · 0.80

Calls 1

addInlineSuppressionsFunction · 0.85

Tested by 1

getcodeMethod · 0.64