Skip to content

Token: avoid unnecessary lookups in update_property_info() and added unit tests for it#7369

Merged
firewave merged 4 commits intocppcheck-opensource:mainfrom
firewave:updateprop-y
Mar 18, 2025
Merged

Token: avoid unnecessary lookups in update_property_info() and added unit tests for it#7369
firewave merged 4 commits intocppcheck-opensource:mainfrom
firewave:updateprop-y

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@firewave firewave force-pushed the updateprop-y branch 7 times, most recently from 74d74c9 to d4f2034 Compare March 12, 2025 10:21
@firewave firewave changed the title Token: avoid unnecessary lookups in update_property_info() and added unit test for it Token: avoid unnecessary lookups in update_property_info() and added unit tests for it Mar 12, 2025
@firewave firewave force-pushed the updateprop-y branch 8 times, most recently from d0b0be7 to 73773fe Compare March 12, 2025 13:19
@firewave

This comment was marked as resolved.

@firewave firewave marked this pull request as ready for review March 14, 2025 10:46
@firewave
Copy link
Copy Markdown
Collaborator Author

firewave commented Mar 14, 2025

before:

60,592,607,297 (100.0%)  PROGRAM TOTALS

after:

60,253,577,235 (100.0%)  PROGRAM TOTALS

Copy link
Copy Markdown
Collaborator

@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.

if you fix the spelling then feel free to merge

Comment thread lib/token.cpp Outdated
else if (mTokensFrontBack.list.isKeyword(mStr)) {
tokType(eKeyword);
update_property_isStandardType();
if (mTokType != eType) // cannot be a control-float keyword when it is a type
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

control-float => control-flow

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.

Done.

@firewave firewave merged commit 9c9d08e into cppcheck-opensource:main Mar 18, 2025
60 checks passed
@firewave firewave deleted the updateprop-y branch March 18, 2025 13:17
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