Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #13153 FN: constStatement (Local Lambda Expression) #7170

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

chrchr-github
Copy link
Collaborator

No description provided.

@orbitcowboy orbitcowboy merged commit 445bc7a into danmar:main Jan 3, 2025
60 checks passed
@chrchr-github chrchr-github deleted the chr_13176 branch January 3, 2025 11:57
@danmar
Copy link
Owner

danmar commented Jan 5, 2025

@chrchr-github I think there is some more low hanging fruit for this checker. Here is code from the Misra C example suite:

void R_2_2(uint16_t v)
{
   v >> 3;
}

A constStatement warning would be nice, wouldn't it? :-)

@chrchr-github
Copy link
Collaborator Author

Here's what I get:

test.cpp:3:7: warning: inconclusive: Found suspicious operator '>>', result is not used. [constStatement]
    v >> 3;
      ^

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.

3 participants