0

I am trying to generate documentation for some 'Error Codes' implemented in the code. To start my work, I used the reference from: Custom tags with Doxygen Using the \xrefitem and ALIASES option, I did the following.

ALIASES = "error{1}=\ref ErrorCode-\1 \"ErrorCode-\1\" " \
          "implement{1}=\xrefitem implement \"Implements ErrorCode\" \"ErrorCode Implementation\" \1" \

In the code I write the comment in FUNC1, for example:

@implement{@error{001}} Error Code 001

Using the above, I can generate a page where it shows the function name and which error codes are implemented in it.

Now, what I have is multiple sources of same Error Code in my project. So, in the documentation I would also like to have a page, where I can see the Error Code and where it is implemented (with links to the function).

What I have on page "ErrorCode Implementation":

FUNC1 
    Implements ErrorCode-001, ErrorCode-003

FUNC2 
    Implements ErrorCode-002

What I want on page "ErrorCode Tracing":

ErrorCode-001 
    Implemented in FUNC1, FUNC3

ErrorCode-002
    Implemented in FUNC2

How can this be done in Doxygen?

sidG
  • 1
  • 2

0 Answers0