Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(developer): refactor kmcmplib compiler messages to use map #11738

Conversation

markcsinclair
Copy link
Contributor

@markcsinclair markcsinclair commented Jun 7, 2024

Refactor CompMsg.cpp to use a map, which removes the need for linear searching in GetCompilerErrorString

Supporting tests added in gtest-compmsg-test.cpp

Removed from PR #11378

@keymanapp-test-bot skip

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Jun 7, 2024

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot bot added this to the A18S3 milestone Jun 7, 2024
@markcsinclair markcsinclair marked this pull request as draft June 7, 2024 10:09
@github-actions github-actions bot added the fix label Jun 7, 2024
@markcsinclair markcsinclair added the test Any acceptance test issue label Jun 7, 2024
@markcsinclair markcsinclair marked this pull request as ready for review June 7, 2024 10:34
@mcdurdin mcdurdin modified the milestones: A18S3, A18S4 Jun 7, 2024
@markcsinclair markcsinclair reopened this Jun 8, 2024
@markcsinclair
Copy link
Contributor Author

Not sure why this closed when I merged PR #11378 into master

@markcsinclair markcsinclair self-assigned this Jun 8, 2024
@markcsinclair
Copy link
Contributor Author

Merge conflicts resolved, ready to review

@mcdurdin
Copy link
Member

mcdurdin commented Jun 9, 2024

Not sure why this closed when I merged PR #11378 into master

The commit message was moved CompMsg.cpp refactor to fix #11738. GitHub saw fix #11738...

}
}
return nullptr;
KMX_CHAR *GetCompilerErrorString(KMX_DWORD code) {
Copy link
Member

Choose a reason for hiding this comment

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

next step, make this return a const KMX_CHAR * ... so much const missing in kmcmplib.

…mcmplib-compiler-messages-to-use-map

# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
@markcsinclair
Copy link
Contributor Author

@mcdurdin Do you want to have another quick look?

…mcmplib-compiler-messages-to-use-map

# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
@markcsinclair markcsinclair merged commit bed7711 into master Jun 17, 2024
2 checks passed
@markcsinclair markcsinclair deleted the fix/developer/refactor-kmcmplib-compiler-messages-to-use-map branch June 17, 2024 09:03
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.57-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants