Skip to content

Conversation

@ludviggunne
Copy link
Collaborator

No description provided.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2026

continue;
if (!tok->astOperand1())
continue;
if (tok->astOperand1()->str() == "." && !tok->astOperand1()->astOperand2())
Copy link
Owner

@danmar danmar Feb 4, 2026

Choose a reason for hiding this comment

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

In general use Token::isUnaryOp to check if an operand is a unary operand.

However here in this case I wonder if isDesignatedInitializer might be preferable.

Copy link
Owner

@danmar danmar left a comment

Choose a reason for hiding this comment

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

might be better to use isDesignatedInitializer

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