Refactoring table sec:accessors-command-buffer-members#957
Refactoring table sec:accessors-command-buffer-members#957TApplencourt wants to merge 4 commits intomainfrom
Conversation
0590b00 to
38d0ee7
Compare
38d0ee7 to
12bed31
Compare
|
Hi @TApplencourt, Starting with I don't like the extra TOC level that the script adds now. We already have too many TOC levels in this part of the spec, so I don't want to add another. I think the TOC should look like this once this section is converted: I also want to make sure that we convert all the sections I list above. This PR just converts "3.7.6.9.3 Member functions", and I think that makes the spec more confusing than it is now. Personally, I'd just use one PR to make all these changes. However, if you want to break it up into multiple PRs, that's OK too. However, I want to wait for all these sections to be converted before merging any of the PRs. I think we should rename the I also think we should bikeshed the names of the section identifiers (e.g. Note that the Finally, I have a nit about the callout numbers in the code synopsis. Please match the same style we user here: https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#api:queue-single-task
|
|
Side note on callouts (we can move into an issue as it's not related to this PR): If we want to continue not-commenting and have the current indenting, we should fix the 12 who are part of For the one part of headers ( But we parse the header ( I guess we should move those away from this "include .h" + "effect addoc" pattern? |
|
The 12 callouts you list are all in older parts of the spec, which were not written with the new format. I think we can address these as we reformat those sections. Yes, I don't like the older style where the synopsis was in a |
|
Before going into more details my view for those PR for this is PR is really about "automatic translation" so we can scale it to the full spec and be done with the migration from table to section.
It may required considerable amount of work (due to each table have some "non-automatic" labeling.) For example the name of the constructor in each section. But I can have a go at it.
If it's automatic then I'm ok with it. Right now, it use the name of the table to create the section name.
100% agree. May conflict with the automatic approach. Maybe we can "stage" PR to a another branch (where we. do all the automatic translation, and then "manual PR fix ", review them, and then do one big merge to main.
Good catch. Done!
Done.
It transformed the table into a section. |
|
Found a potential naming in coherency, In table: We put the Not |
|
Ok this table should be good. Minus the name of the section will do that in the next commit. |
This PR refactor the
Table 29. Member functions of the accessor class.It demonstrate:
Transformation of table into section
table idthe wordtable.withsec:and then replacing the.with-[[table.accessors.command.buffer.members]] -> [[sec:accessors-command-buffer-members]]Transformation of the cell into sub section:
{classname}::{function-name}idis namedapi:{section-prefix}-{function-name}. So the old[source]is replaced to[source,role=synopsis,id=api:{section-prefix}-{function-name}]c++ operator, where for exampleoperator=(is not a valid name for a anchor. For the particular=(we sanitize it tooperator-asign: The new anchor is nowapi:accessors-command-buffer-members-operator-assign\n'''\nto follow current style.Changing old reference to new one
Note