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

Add Misc.print_see_manual for easier printing of "see manual section X.Y.Z" #12125

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

smuenzel
Copy link
Contributor

Prerequisite to #12051

Make printing references to manual sections easier/more consistent by adding Misc.print_see_manual.
Additionally, modify the manual check to accept lists of manual sections, so that we can easily pass these as a parameter to print_see_manual.

This PR also makes some manual references more detailed.

Copy link
Member

@Octachron Octachron left a comment

Choose a reason for hiding this comment

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

This is a good extension of the manual cross-reference checkers that makes it possible to simplify the code in the compiler and uniformize the format of the references to the manual in warnings and error messages.

This is a clear improvement in the distribution of complexity in the code base.

Changes Outdated
@@ -552,6 +552,10 @@ Working version
cu_required_globals field of compilation unit descriptors.
(Sébastien Hinderer, review by Vincent Laviron)

- #????: Add Misc.print_see_manual and modify [@manual_ref] to accept
lists for simpler printing of manual references
(Stefan Muenzel, review by ????)
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be filled in before merging. (I almost merged.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! I left it purposefully vague in case someone other than @Octachron wanted to jump in to review

Copy link
Member

Choose a reason for hiding this comment

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

Nah, I'm too busy making noob mistakes in C code.

@Octachron Octachron merged commit 2231b5e into ocaml:trunk Mar 22, 2023
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.

3 participants