Skip to content

Commit

Permalink
Add Doxygen predefines (#2608)
Browse files Browse the repository at this point in the history
Summary:
- Add platform preprocessor flags to Doxygen to enable docs generation for code sections that are `#ifdef`-guarded by platform flags

Pull Request resolved: #2608

Reviewed By: spcyppt

Differential Revision: D57580149

Pulled By: q10

fbshipit-source-id: b2e27ef3d514542f021b2e0740b6b16b8c6a1e77
  • Loading branch information
q10 authored and facebook-github-bot committed May 20, 2024
1 parent 37c283c commit cf12b84
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions fbgemm_gpu/docs/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2360,9 +2360,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.

# Define platform preprocessor flags to enable docs generation for code sections
# that are `#ifdef`-guarded by platform flags

PREDEFINED = DOXYGEN_THIS_WILL_BE_SKIPPED \
"FBGEMM_API=" \
"DLL_PUBLIC="
FBGEMM_API \
DLL_PUBLIC \
__linux__ \
_WIN32 \
__APPLE__

# 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 cf12b84

Please sign in to comment.