8000 Preprocessor fails to correctly process complex config structure · Issue #11597 · doxygen/doxygen · GitHub
[go: up one dir, main page]

Skip to content
Preprocessor fails to correctly process complex config structure #11597
@maettu-this

Description

@maettu-this

No existing feature found when searching for e.g. https://github.com/doxygen/doxygen/issues?q=is%3Aissue%20state%3Aopen%20preprocessor.

Describe the bug
As shown by the below screenshot, MAIN_CONFIG_USE_SUBSCOPE is a macro defined to CONFIG_YES. However, when processing "SubConfigCommon", the Doxygen preprocessor fails to correctly retrieve MAIN_CONFIG_USE_SUBSCOPE and therefore skips lines 7-11, resulting in missing documentation of SUB_CONFIG_COMMON_ITEM as well as FEATURE_DEF_T_2 defined in "./headers/FeatureHeader.h".

Running generation with -d preprocessor reveals:

Preprocessing <WORKSPACE>/headers/FeatureHeader.h...
#include SubConfig.h: not found! skipping...

This is strange, SubConfig.h is even contained in the input, Doxygen for sure knows about this file.

Screenshots
Image

To Reproduce
Issue 11597 Repro Sample.zip
Open "Reference.chm" and navigate to as shown be the below screenshot.
Use "non-defaults.doxy" to regenerate.

Expected behavior
Describe what you would have expected or think is correct.

Version
Doxygen 1.10.0 (cannot use newer version due to #11006 (comment))
Win 11 x64

Stack trace
n/a

Additional context
The repro sample represents a condensed situation based on a larger structure of the project I work in. The project uses the shown config structure for being able to deal with ~50 boards in multiple use variants, resulting in ~150 config variants.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0