Skip to content

cleaned up simplecpp::Macro construction and assignment - #596

Draft
firewave wants to merge 6 commits into
cppcheck-opensource:masterfrom
firewave:macro-emplace
Draft

cleaned up simplecpp::Macro construction and assignment#596
firewave wants to merge 6 commits into
cppcheck-opensource:masterfrom
firewave:macro-emplace

Conversation

@firewave

Copy link
Copy Markdown
Collaborator

No description provided.

@firewavefirewave changed the title cleanups related to simplecpp::Macro construction and assignmentcleaned up simplecpp::Macro construction and assignmentDec 4, 2025
@firewave
firewaveforce-pushed the macro-emplace branch 3 times, most recently from a431e1f to e3792a3CompareDecember 7, 2025 23:37
Comment threadsimplecpp.cpp Outdated
sizeOfType.insert(std::make_pair("float *", sizeof(float *)));
sizeOfType.insert(std::make_pair("double *", sizeof(double *)));
sizeOfType.insert(std::make_pair("long double *", sizeof(long double *)));
sizeOfType.emplace("char", sizeof(char));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This block could be an init list, followed by sizeOfType.insert(rawtokens.sizeOfType.begin(), rawtokens.sizeOfType.end()).

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

This is not even macro code. I will pull this out in a separate PR and apply you suggestion.

Sign up for freeto 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

@firewave@chrchr-github