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

Hyrax 1295 -draft #942

Merged
merged 10 commits into from
Jun 11, 2024
Merged

Hyrax 1295 -draft #942

merged 10 commits into from
Jun 11, 2024

Conversation

kyang2014
Copy link
Collaborator

@kyang2014 kyang2014 commented Jun 10, 2024

Make dmrpp to support the access of Structure that contains strings(variable or fixed length) as the base type.

@kyang2014 kyang2014 marked this pull request as draft June 10, 2024 14:07
Copy link

sonarcloud bot commented Jun 11, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Jun 11, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Jun 11, 2024

@kyang2014 kyang2014 marked this pull request as ready for review June 11, 2024 18:11
Copy link
Member

@jgallagher59701 jgallagher59701 left a comment

Choose a reason for hiding this comment

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

This looks really good. I have two suggestions but they are just that.

bool ret_value = true;
Constructor::Vars_iter vi = var_ctor->var_begin();
Constructor::Vars_iter ve = var_ctor->var_end();
for (; vi != ve; vi++) {
Copy link
Member

Choose a reason for hiding this comment

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

If you use the const vector<BaseType*> &variables() const { return d_vars; } method, these loops can be re-written using the range-based for loop:

for (auto bt: var_ctor->variables()) {
...
}

Constructor::Vars_iter vi = dmrpp_s->var_begin();
Constructor::Vars_iter ve = dmrpp_s->var_end();

for (; vi != ve; vi++) {
Copy link
Member

Choose a reason for hiding this comment

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

Another loop here.

@kyang2014 kyang2014 merged commit e40771a into master Jun 11, 2024
2 checks passed
@kyang2014 kyang2014 deleted the hyrax-1295 branch June 19, 2024 18:23
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.

None yet

2 participants