Skip to content

Commit

Permalink
added config option excluded_symbols
Browse files Browse the repository at this point in the history
closes #36
  • Loading branch information
marzer committed Aug 3, 2024
1 parent aec6d30 commit 31024bf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.18.0 - 2024-08-03

- added config option `excluded_symbols` (a.k.a. Doxygen's `EXCLUDE_SYMBOLS`) (#36) (@Guekka)

## v0.17.2 - 2024-06-16

- fixed qualified return types appearing squashed together without whitespace in some circumstances
Expand Down
8 changes: 8 additions & 0 deletions src/poxy/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ class Context(object):
Optional(r'description'): Stripped(str),
Optional(r'examples'): FilteredInputs.schema,
Optional(r'extra_files'): ValueOrArray(str, name=r'extra_files'),
Optional(r'excluded_symbols'): ValueOrArray(str, name=r'excluded_symbols'),
Optional(r'favicon'): Stripped(str),
Optional(r'generate_tagfile'): bool,
Optional(r'github'): Stripped(str),
Expand Down Expand Up @@ -1781,6 +1782,13 @@ def add_internal_asset(p) -> str:
self.inline_namespaces.add(namespace)
self.verbose_value(r'Context.inline_namespaces', self.inline_namespaces)

self.excluded_symbols = set()
if 'excluded_symbols' in config:
for symbol in coerce_collection(config['excluded_symbols']):
symbol = symbol.strip()
if symbol:
self.excluded_symbols.add(symbol)

# implementation headers
self.implementation_headers = []
if 'implementation_headers' in config:
Expand Down
3 changes: 3 additions & 0 deletions src/poxy/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ def preprocess_doxyfile(context: Context):

df.set_value(r'USE_MDFILE_AS_MAINPAGE', context.main_page)

if context.excluded_symbols:
df.set_value(r'EXCLUDE_SYMBOLS', context.excluded_symbols)

df.append()
df.append(r'# context.warnings', end='\n\n') # ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/poxy/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.17.2
0.18.0

0 comments on commit 31024bf

Please sign in to comment.