Skip to content

Fix #14712: FP constVariableReference , taking non const reference to member - #8767

Open
ludviggunne wants to merge 2 commits into
cppcheck-opensource:mainfrom
ludviggunne:14712-const-ref
Open

Fix #14712: FP constVariableReference , taking non const reference to member#8767
ludviggunne wants to merge 2 commits into
cppcheck-opensource:mainfrom
ludviggunne:14712-const-ref

Conversation

@ludviggunne

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/checkother.cpp
}

void isVariableDeclarationSwitch() {
GET_SYMBOL_DB("struct Item { int state; };\n"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: a more reduced example should suffice here.

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