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

Method isEnabled

lib/settings.cpp:314–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314bool Settings::isEnabled(const ValueFlow::Value *value, bool inconclusiveCheck) const
315{
316 if (!severity.isEnabled(Severity::warning) && (value->condition || value->defaultArg))
317 return false;
318 if (!certainty.isEnabled(Certainty::inconclusive) && (inconclusiveCheck || value->isInconclusive()))
319 return false;
320 return true;
321}
322
323void Settings::loadSummaries()
324{

Callers 15

collectLogCheckersMethod · 0.45
nullPointerErrorMethod · 0.45
arithmeticMethod · 0.45
analyseWholeProgramMethod · 0.45
arrayIndexErrorMethod · 0.45
negativeIndexErrorMethod · 0.45
pointerArithmeticMethod · 0.45
arrayIndexThenCheckMethod · 0.45
argumentSizeMethod · 0.45

Calls 1

isInconclusiveMethod · 0.45