Skip to content

add fix for findGotoLabel in misra.py - #8876

Open
driftregion wants to merge 1 commit into
cppcheck-opensource:mainfrom
driftregion:main
Open

driftregion wants to merge 1 commit into
cppcheck-opensource:mainfrom
driftregion:main

Conversation

@driftregion

Copy link
Copy Markdown

Hello. Thank you for maintaining cppcheck.

While testing my library with the misra.py addon, I found that it gave false positives when the closing brace of an initializer list was mistaken for the closing brace of a function. This PR adds a failing test case and the code to make it pass.

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.

1 participant