Skip to content

Commit

Permalink
s1kd-refs: Add new format variables and <fragment>
Browse files Browse the repository at this point in the history
Added the %code% and %fragment% format variables, and added a new
element, <fragment>, to the XML report for references to a fragment
(such as referredFragment, hotspots or CSNs).
  • Loading branch information
kibook committed Oct 10, 2024
1 parent 200a63e commit 1924bb0
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 87 deletions.
5 changes: 5 additions & 0 deletions tools/s1kd-refs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,14 @@ This allows you to:
Specify a custom format for printed references. \<fmt\> is a format
string, where the following variables can be given:

- %code% - The code of the reference.

- %file% - The filename of the referenced object (nothing is
printed if no file is matched).

- %fragment% - The fragment part of a reference (nothing is
printed if there is no fragment).

- %line% - The line number where the reference occurs in the
source.

Expand Down
14 changes: 10 additions & 4 deletions tools/s1kd-refs/doc/DMC-S1KDTOOLS-A-25-00-00-00A-040A-D_EN-CA.XML
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<dmIdent>
<dmCode modelIdentCode="S1KDTOOLS" systemDiffCode="A" systemCode="25" subSystemCode="0" subSubSystemCode="0" assyCode="00" disassyCode="00" disassyCodeVariant="A" infoCode="040" infoCodeVariant="A" itemLocationCode="D"/>
<language languageIsoCode="en" countryIsoCode="CA"/>
<issueInfo issueNumber="033" inWork="00"/>
<issueInfo issueNumber="033" inWork="01"/>
</dmIdent>
<dmAddressItems>
<issueDate year="2021" month="04" day="16"/>
<issueDate year="2024" month="10" day="10"/>
<dmTitle>
<techName>s1kd-refs(1) | s1kd-tools</techName>
</dmTitle>
Expand Down Expand Up @@ -38,8 +38,8 @@
<qualityAssurance>
<unverified/>
</qualityAssurance>
<reasonForUpdate>
<simplePara>Upissued</simplePara>
<reasonForUpdate id="rfu-0001" updateHighlight="1">
<simplePara>Add %code% and %fragment% format variables.</simplePara>
</reasonForUpdate>
</dmStatus>
</identAndStatusSection>
Expand Down Expand Up @@ -238,9 +238,15 @@
<para>Specify a custom format for printed references. &lt;fmt&gt; is a format string, where the following variables can be given:</para>
<para>
<randomList>
<listItem changeMark="1" changeType="add" reasonForUpdateRefIds="rfu-0001">
<para>%code% - The code of the reference.</para>
</listItem>
<listItem>
<para>%file% - The filename of the referenced object (nothing is printed if no file is matched).</para>
</listItem>
<listItem changeMark="1" changeType="add" reasonForUpdateRefIds="rfu-0001">
<para>%fragment% - The fragment part of a reference (nothing is printed if there is no fragment).</para>
</listItem>
<listItem>
<para>%line% - The line number where the reference occurs in the source.</para>
</listItem>
Expand Down
7 changes: 6 additions & 1 deletion tools/s1kd-refs/doc/s1kd-refs.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 2.0.6
.\"
.TH "s1kd\-refs" "1" "2021\-04\-16" "" "s1kd\-tools"
.TH "s1kd\-refs" "1" "2024\-10\-10" "" "s1kd\-tools"
.hy
.SH NAME
.PP
Expand Down Expand Up @@ -203,9 +203,14 @@ Specify a custom format for printed references.
<fmt> is a format string, where the following variables can be given:
.RS
.IP \[bu] 2
%code% \- The code of the reference.
.IP \[bu] 2
%file% \- The filename of the referenced object (nothing is printed if
no file is matched).
.IP \[bu] 2
%fragment% \- The fragment part of a reference (nothing is printed if
there is no fragment).
.IP \[bu] 2
%line% \- The line number where the reference occurs in the source.
.IP \[bu] 2
%ref% \- The reference.
Expand Down
Loading

0 comments on commit 1924bb0

Please sign in to comment.