Skip to content

Commit fc5745a

Browse files
committed
2.2.2
1 parent dbee8df commit fc5745a

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

Spexyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ ALIASES += \
2222
"code_fw_trace{1}=^^@par Forward Traceability^^" \
2323
"endcode_uid=" \
2424
"tr{1}=@ref \1 \"\1\"" \
25-
"precondition{2}=@par Precondition `\1:\2`^^" \
26-
"postcondition{2}=@par Postcondition `\1:\2`^^" \
25+
"precondition{2}=^^@par Precondition `\1:\2`^^" \
26+
"postcondition{2}=^^@par Postcondition `\1:\2`^^" \
2727
"invariant{2}=@par Invariant `\1:\2`^^" \
2828
"nav{2}=<span class=\"prev_button\">@ref \1</span><span class=\"next_button\">@ref \2</span>" \
2929
"nav_prev{1}=<span class=\"prev_button\">@ref \1</span>" \

doc/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Project related configuration options
77
#---------------------------------------------------------------------------
88
PROJECT_NAME = Spexygen
9-
PROJECT_NUMBER = 2.2.1
9+
PROJECT_NUMBER = 2.2.2
1010
PROJECT_BRIEF = "Reference Manual"
1111
PROJECT_LOGO = $(SPEXYGEN)/spexygen-awesome/img/logo_spexygen.webp
1212
PROJECT_ICON =

doc/Doxyfile-PDF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Configuration options related to the LateX output
77
#---------------------------------------------------------------------------
88
PROJECT_NAME = Reference Manual
9-
PROJECT_BRIEF = For Spexygen 2.2.1
9+
PROJECT_BRIEF = For Spexygen 2.2.2
1010
PROJECT_NUMBER = Document: DOC_MAN_SPX
1111

1212
#---------------------------------------------------------------------------

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name="spexygen",
12-
version="2.2.1",
12+
version="2.2.2",
1313
author="Quantum Leaps",
1414
author_email="[email protected]",
1515
description="Traceable specifications based on doxygen",

spexygen.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#=============================================================================
44
# _Spexygen_ - Traceable Specifications Based on doxygen
5-
# Copyright (C) 2023 Quantum Leaps, LLC <www.state-machine.com>
5+
# Copyright (C) 2024 Quantum Leaps, LLC <www.state-machine.com>
66
#
77
# SPDX-License-Identifier: MIT
88
#
@@ -47,7 +47,7 @@ class Spexygen:
4747
'''
4848

4949
# public class constants
50-
VERSION = 221
50+
VERSION = 222
5151

5252
UID_DOC = 1
5353
UID_CODE = 2
@@ -83,12 +83,12 @@ def on_file_pattern(self, fname):
8383
fname.endswith('.hpp') or fname.endswith('.cpp') or \
8484
fname.endswith('.py') or fname.endswith('.lnt')
8585

86-
def on_gen_fw_trace(self, level):
86+
def on_gen_fw_trace(self, uid, level):
8787
'''recursively generate the forward trace for a "uid"
8888
from self._uid_traced_list[level]
8989
'''
90-
uid = self._uid_traced_list[level]
91-
Spexygen.debug(" level", level,
90+
self._uid_traced_list.append(uid)
91+
Spexygen.debug(" level=", level, "uid=", uid,
9292
"self._uid_traced_list:", self._uid_traced_list)
9393
for uid in self._uid_trace_dict.get(uid):
9494
if uid not in self._uid_traced_list:
@@ -97,8 +97,7 @@ def on_gen_fw_trace(self, level):
9797
uid, self._uid_brief_dict[uid]))
9898
if level < len(Spexygen.LEVELS) - 2:
9999
if uid in self._uid_trace_dict:
100-
self._uid_traced_list.append(uid)
101-
self.on_gen_fw_trace(level+1) # recursive!
100+
self.on_gen_fw_trace(uid, level+1) # recursive!
102101
else:
103102
self._file.write("%s%s- ...\n"
104103
%(self._prefix, Spexygen.LEVELS[level+1]))
@@ -298,8 +297,8 @@ def gen_fw_trace(self, line):
298297
self._prefix = line[:i]
299298
self._file.write(line)
300299
if self._uid in self._uid_trace_dict:
301-
self._uid_traced_list = [self._uid]
302-
self.on_gen_fw_trace(0)
300+
self._uid_traced_list = []
301+
self.on_gen_fw_trace(self._uid, 0)
303302
else:
304303
print(f' {self._fname}:{self._lnum} empty forward trace'\
305304
f' for UID: "{self._uid}"')

0 commit comments

Comments
 (0)