Skip to content

Commit 39c118f

Browse files
Update forwardanalyzer.cpp
1 parent 140480f commit 39c118f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/forwardanalyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ namespace {
682682
}
683683
} else if (tok->isControlFlowKeyword() && Token::Match(tok, "if|while|for (") &&
684684
Token::simpleMatch(tok->linkAt(1), ") {")) {
685-
if ((settings.vfOptions.maxForwardBranches > 0) && (++branchCount > settings.vfOptions.maxForwardBranches)) {
685+
if (settings.severity.isEnabled(Severity::information) && (settings.vfOptions.maxForwardBranches > 0) && (++branchCount > settings.vfOptions.maxForwardBranches)) {
686686
// TODO: should be logged on function-level instead of file-level
687687
reportError(Severity::information, "normalCheckLevelMaxBranches", "Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.");
688688
return Break(Analyzer::Terminate::Bail);

0 commit comments

Comments
 (0)