From 9d45257fbd46f191f84265362b1dc45a6c5fcc6f Mon Sep 17 00:00:00 2001 From: Benson Ma Date: Mon, 20 May 2024 11:42:04 -0700 Subject: [PATCH] [fbgemm_gpu] Add Doxygen predefines - Add platform preprocessor flags to Doxygen to enable docs generation for code sections that are `#ifdef`-guarded by platform flags --- fbgemm_gpu/docs/Doxyfile.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fbgemm_gpu/docs/Doxyfile.in b/fbgemm_gpu/docs/Doxyfile.in index aab84201d..e7e20b49c 100644 --- a/fbgemm_gpu/docs/Doxyfile.in +++ b/fbgemm_gpu/docs/Doxyfile.in @@ -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