Skip to content

Commit

Permalink
Fix breathe parsing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yut23 committed Jan 16, 2025
1 parent 539e41d commit b168435
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions sphinx_docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ EXCLUDE_SYMLINKS = NO
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories for example use the pattern */test/*

EXCLUDE_PATTERNS = util/autodiff/* util/gcem/* util/skynet/* */tmp_build_dir/*
EXCLUDE_PATTERNS = */util/autodiff/* */util/gcem/* */util/skynet/* */tmp_build_dir/*

# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
# (namespaces, classes, functions, etc.) that should be excluded from the
Expand Down Expand Up @@ -2009,15 +2009,15 @@ ENABLE_PREPROCESSING = YES
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

MACRO_EXPANSION = NO
MACRO_EXPANSION = YES

# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
# the macro expansion is limited to the macros specified with the PREDEFINED and
# EXPAND_AS_DEFINED tags.
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

EXPAND_ONLY_PREDEF = NO
EXPAND_ONLY_PREDEF = YES

# If the SEARCH_INCLUDES tag is set to YES, the include files in the
# INCLUDE_PATH will be searched if a #include is found.
Expand Down Expand Up @@ -2049,7 +2049,15 @@ INCLUDE_FILE_PATTERNS =
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

PREDEFINED =
# breathe barfs on these when trying to parse function definitions
# see https://github.com/breathe-doc/breathe/issues/905
PREDEFINED = AMREX_GPU_DEVICE= \
AMREX_GPU_HOST_DEVICE= \
AMREX_GPU_MANAGED= \
AMREX_INLINE= \
AMREX_FORCE_INLINE= \
AMREX_FLATTEN= \
AUTODIFF_DEVICE_FUNC=

# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
Expand Down

0 comments on commit b168435

Please sign in to comment.