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: Remove ALIAS operand parsing limitation #178

Merged

Conversation

slavek-kucera
Copy link
Contributor

fixes #157

if (format.form != processing::processing_form::ASM)
return false;

auto i = hlasm_ctx->instruction_map().find(opcode.value);
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor Author

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

@sonarcloud
Copy link

sonarcloud bot commented Sep 16, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

95.5% 95.5% Coverage
0.0% 0.0% Duplication

@slavek-kucera slavek-kucera merged commit 480e602 into eclipse-che4z:development Sep 17, 2021
@slavek-kucera slavek-kucera deleted the fix_alias_operands branch September 17, 2021 11:58
@github-actions
Copy link

github-actions bot commented Nov 3, 2021

🎉 This PR is included in version 0.15.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented Nov 8, 2021

🎉 This PR is included in version 0.15.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Valid ALIAS operands are marked as errors
2 participants