Skip to content

Refs #14294: Fix FN constParameterPointer for cast to integer#7987

Merged
chrchr-github merged 4 commits intodanmar:mainfrom
chrchr-github:chr_intcast
Nov 29, 2025
Merged

Refs #14294: Fix FN constParameterPointer for cast to integer#7987
chrchr-github merged 4 commits intodanmar:mainfrom
chrchr-github:chr_intcast

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/symboldatabase.cpp
}
if (Token::Match(parent->previous(), "%name% (") && parent->astOperand1() == tok && valuetype.pointer > 0U) {
if (Token::Match(parent->tokAt(-1), "%name% (") && !parent->tokAt(-1)->isKeyword() && parent->astOperand1() == tok && valuetype.pointer > 0U) {
ValueType vt(valuetype);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This was added in c12cb69 related to function pointers.

@sonarqubecloud
Copy link
Copy Markdown

@chrchr-github chrchr-github merged commit a9f88d4 into danmar:main Nov 29, 2025
55 checks passed
@chrchr-github chrchr-github deleted the chr_intcast branch November 29, 2025 18:58
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