Skip to content

Conversation

@chrchr-github
Copy link
Collaborator

No description provided.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 6, 2025

@chrchr-github chrchr-github merged commit 7100bda into danmar:main Nov 7, 2025
55 checks passed
@chrchr-github chrchr-github deleted the chr_14251 branch November 7, 2025 18:03
return false;
const Token* varTok = tok->astOperand2();
return !varTok || !varTok->variable() || !varTok->variable()->valueType() || varTok->variable()->valueType()->pointer == 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This will return true for smart pointers. This should probably be named isOwnerWithDeref or something like that. We should also add optional to the library config, but we could check for class names optional.

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