Skip to content

Report an error if analysis becomes cyclic#3173

Merged
danmar merged 1 commit intocppcheck-opensource:mainfrom
pfultz2:report-cyclic-analysis
Mar 20, 2021
Merged

Report an error if analysis becomes cyclic#3173
danmar merged 1 commit intocppcheck-opensource:mainfrom
pfultz2:report-cyclic-analysis

Conversation

@pfultz2
Copy link
Copy Markdown
Contributor

@pfultz2 pfultz2 commented Mar 18, 2021

Sometimes when analysis traverses to the next token using the AST, it can sometimes move in the wrong direction, which means it will repeat the token again causing a hang. This will now report an error instead of hanging which should help in diagnosing the issue.

@amai2012 amai2012 requested a review from danmar March 19, 2021 11:46
@danmar danmar merged commit b0ac92c into cppcheck-opensource:main Mar 20, 2021
@pfultz2 pfultz2 deleted the report-cyclic-analysis branch April 4, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants