Macros can be extracted before the AST step via the preprocessor: This is a new issue meant to obsolete https://github.com/cppalliance/mrdocs/issues/627 because of https://github.com/cppalliance/mrdocs/issues/627#issuecomment-2187150299