Skip to content

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Aug 8, 2025

No description provided.

// TODO: Make this constructor only available from ProgramMemory
// cppcheck-suppress noExplicitConstructor
// NOLINTNEXTLINE(google-explicit-constructor)
ExprIdToken(nonneg int exprid) : exprid(exprid) {}
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 only used for lookups/comparisons.

@firewave
Copy link
Collaborator Author

firewave commented Aug 8, 2025

A cleanup ahead of #7295.

}

bool ProgramMemory::hasValue(nonneg int exprid)
bool ProgramMemory::hasValue(nonneg int exprid) const
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Detecting this is tracked in https://trac.cppcheck.net/ticket/12162.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually. With my changes this might have been caught now.

Copy link

@firewave firewave merged commit 5b89c84 into danmar:main Aug 15, 2025
83 of 84 checks passed
@firewave firewave deleted the pm-expr branch August 15, 2025 12:19
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.

1 participant