Skip to content

Commit

Permalink
Tools: autotest: logger_metadata: allow @LoggerEnum to override enu…
Browse files Browse the repository at this point in the history
…m name
  • Loading branch information
IamPete1 committed Dec 20, 2024
1 parent 19f197d commit 1049170
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tools/autotest/logger_metadata/enum_parse.py
Original file line number Diff line number Diff line change
@@ -168,7 +168,7 @@ def debug(x):
continue

# // @LoggerEnum: NAME - can be used around for #define sets
m = re.match(r".*@LoggerEnum: *([\w]+)", line)
m = re.match(r".*@LoggerEnum: *([\w:]+)", line)
if m is not None:
enum_name = m.group(1)
debug("%s: %s" % (source_file, enum_name))
@@ -180,6 +180,9 @@ def debug(x):

continue
if state == "inside":
if re.match(r"\s*enum.*$", line):
# Allow @LoggerEnum around Enum for name override
continue
if re.match(r"\s*$", line):
continue
if re.match(r"#if", line):

0 comments on commit 1049170

Please sign in to comment.