2

I use doxygen to document a C++ codebase which uses some packed structs to represent communication buffers. I usually like the alphabetical order of members doxygen uses because it makes it easier to find something in the documentation. However, I'd prefer the documentation of my packed structs to show the fields in the order I've declared them, because in that case, the order of declaration matters (among other things, the documentation of some fields like the ones representing CRC values refers to some other fields in the same struct).

Is there a way to choose the order of the fields individually for a specific struct or is SORT_MEMBER_DOCS the only (global) way to control sorting?

albert
  • 8,285
  • 3
  • 19
  • 32
lgeorget
  • 400
  • 4
  • 13
  • I am afraid this is not possible. As a workaround you could generate the doc for that single file seperately with its own config file – 463035818_is_not_an_ai Oct 20 '17 at 12:39
  • @tobi303 Thank you for your comment. That was my understanding from what I've seen online and in the Doxygen's manual too. Too bad :-/ I'll see if I can patch Doxygen to make do what I want. – lgeorget Oct 20 '17 at 12:46
  • the only chance is see is to override the global setting on a per file basis, but I guess thats not possible in general – 463035818_is_not_an_ai Oct 20 '17 at 12:48

0 Answers0