Skip to content

Conversation

@chrchr-github
Copy link
Collaborator

No description provided.

}
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
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

@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