Skip to content

Commit

Permalink
Two small fixes to the C++ logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
crisluengo committed Mar 16, 2024
1 parent bfafe54 commit 1e54e89
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doxpp/buildtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def clean_single_line_comment_block(comment):
def clean_multiline_comment(comment, prelen=None):
comment = comment.expandtabs(tab_size)
start = 3
if start < len(comment) and comment[start] == '<':
if start < len(comment) and comment[start] == '<':
# This is if the comment is in the style "/**< ... */"
start = 4
lines = comment[start:-2].strip(' ').splitlines()
Expand All @@ -255,7 +255,7 @@ def clean_multiline_comment(comment, prelen=None):
else:
# TODO: should we warn here about shenanigans?
pass
if len(lines) == 1:
if len(lines) <= 1:
return lines
# At this point, all but the first line might have some uniform indentation, depending on the style
# of the comment:
Expand Down Expand Up @@ -621,6 +621,9 @@ def post_process_inheritance(members):
if id:
base['id'] = id
base_member = members[id]
if 'derived' not in base_member:
log.error("Base class for %s is not a class, I've inferred the wrong thing here!", member['name'])
continue
base_member['derived'].append(member['id'])

ref_cmd_match = re.compile(r'[\\@]ref +((?:\w|::|%|-)+(?: *\(.*?\))?)(?: +"(.*?)")?')
Expand Down

0 comments on commit 1e54e89

Please sign in to comment.