| 312 | } |
| 313 | |
| 314 | bool 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 | |
| 323 | void Settings::loadSummaries() |
| 324 | { |