-
Notifications
You must be signed in to change notification settings - Fork 25
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: Remove ALIAS operand parsing limitation #178
fix: Remove ALIAS operand parsing limitation #178
Conversation
if (format.form != processing::processing_form::ASM) | ||
return false; | ||
|
||
auto i = hlasm_ctx->instruction_map().find(opcode.value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this search necessary?
I think that the opcode should be already resolved (regarding opsyn, etc) and opcode.type == instruction_type::ASM && *opcode.value == "ALIAS"
should be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think OPSYN can complicate things...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But anyway, instruction_map is not modified by OPSYNs, it just holds all the hlasm instructions. opsyns are held in hlasm_context::opcode_mnemo_.
But I still think that the opcode we are looking at holds resolved instruction, regardless of what was really written on the line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I'll do additional testing...
b84f255
to
2f84bbd
Compare
Kudos, SonarCloud Quality Gate passed! |
🎉 This PR is included in version 0.15.0-beta.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 0.15.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
fixes #157