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

Issue#1364: Added case rules for subprogram instantiation declarations #1371

Merged
merged 20 commits into from
Jan 1, 2025

Conversation

JHertz5
Copy link
Contributor

@JHertz5 JHertz5 commented Dec 22, 2024

Resolves #1364.
Note that, as part of this work, I discovered that function_014 and procedure_505 are programmed to act on all instances of their respective subprogram kind, which meant that, contrary to their description, they were acting on subprogram instantiations. I've deprecated those rules and replaced them with subprogram_kind rules. If this approach is not preferred, I am happy to revert/modify those changes.

…ted procedure_009, in favour of subprogram_kind rules.
Copy link

codecov bot commented Dec 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.53%. Comparing base (a2519e4) to head (6bd2c3a).
Report is 47 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1371      +/-   ##
==========================================
+ Coverage   94.51%   94.53%   +0.02%     
==========================================
  Files        1723     1737      +14     
  Lines       30953    31041      +88     
  Branches     3482     3482              
==========================================
+ Hits        29255    29345      +90     
+ Misses       1275     1274       -1     
+ Partials      423      422       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JHertz5 JHertz5 changed the title Issue#1364: Case rules for subprogram instantiations. Issue#1364: Added case rules for subprogram instantiation declarations Dec 29, 2024
Copy link
Owner

@jeremiah-c-leary jeremiah-c-leary left a comment

Choose a reason for hiding this comment

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

Evening @JHertz5 ,

The PR looks good. I agree with creating the subprogram_kind rules and deprecating function_014 and procedure_505.

I just had a couple of questions on the rule documentation.

Thanks again,

--Jeremy


end PROCEDURE parity;

PROCEDURE my_proc is new my_generic_proc
Copy link
Owner

Choose a reason for hiding this comment

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

Should PROCEDURE be changed to lower case on lines 27 and 29?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are absolutely right, thanks for catching that!


end FUNCTION parity;

FUNCTION my_func is new my_generic_func
Copy link
Owner

Choose a reason for hiding this comment

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

Should FUNCTION be changed to lowercase on lines 52 and 54?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are absolutely right, thanks for catching that!

@JHertz5
Copy link
Contributor Author

JHertz5 commented Jan 1, 2025

Hi @jeremiah-c-leary

I just had a couple of questions on the rule documentation.

Thanks for catching those mistakes! I've made corrections and the PR is ready for you to look at again.

Thanks,
Jukka

Copy link
Owner

@jeremiah-c-leary jeremiah-c-leary left a comment

Choose a reason for hiding this comment

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

Updates looks good.

@jeremiah-c-leary jeremiah-c-leary merged commit 2355a0f into jeremiah-c-leary:master Jan 1, 2025
13 checks passed
@JHertz5 JHertz5 deleted the issue-1364 branch January 1, 2025 19:06
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.

Add case rules for subprogram instantiation declarations
2 participants