Closed Akira13641 closed 2 years ago
Unfortunately, the Clang backend used to parse the C code does not support extracting postfix comments in this way. Until they do, I don't see a way to fix this. Once Clang supports this, I will be happy to take a look at it. Closing this issue until then.
Oftentimes, C and C++ headers containing data type declarations (structs, enums, and so on) will have line-by-line comments that follow the field they're documenting, as opposed to preceding it. For example:
When passed that code, Chet currently produces the following:
which of course when run through Pasdoc will have no comment associated with the
A
field at all, and comments that are actually intended for the previous field forC
andY
.I'm aware that this perhaps might be somewhat difficult to implement, but it would certainly be a welcome bit of added functionality if there is any way to pull it off.