[cfe-dev] documentation parsing

Florian Merz florian.merz at kit.edu
Thu Jun 23 09:40:25 PDT 2011


Hey everyone,

does clang throw away comments or are the retained? As far as I remeber they 
are thrown away by the preprocessor, which would be a pitty. I'd need them to 
be integrated into the AST and need to have them associated with a function, 
struct or loop.

Is there any chance to do that? I'd like to parse a JML-like specification, 
which is added to the code in the comments, just like for example doxygen is.

Regards and thanks four your help,
 Florian



More information about the cfe-dev mailing list