Custom tags with Doxygen

后端 未结 3 870
借酒劲吻你
借酒劲吻你 2020-12-02 05:21

I am trying to figure out if there is a way to create a custom tag using Doxygen. I did find the ALIAS configuration file option but that does not do exactly what I need. Ba

3条回答
  •  一整个雨季
    2020-12-02 06:11

    Combining the two answers above, you can have a single clean requirement tag that will build a cross-reference table, and, also provide a direct link to the requirement repo in your docs:

    Doxygen CONFIG file:

    ALIASES = "requirement{1}=@xrefitem requirement \"Requirements\" \"Requirements Traceability\" \1"

    Source code:

    @requirement{REQ-123} Brief textual summary of this requirement item

    This will render in the documentation as:

    Requirements:

    • REQ-123 Brief textual summary of this requirement item

提交回复
热议问题