[cfe-users] parsing ParamCommandComment and getting trailing newline and * for next ParamCommandComment

Zac Hansen via cfe-users cfe-users at lists.llvm.org
Wed Sep 7 03:17:44 PDT 2016


While going through the child comments of a fullcomment, specifically the
ParamCommandComment, when I try to get the description of the param, I'm
getting the trailing newline and * for the next line

/**
* This is some function
* @param some_param this is what it does
* @param some_other_param ...
*/

I just want to get "this is what it does" but I end up with

```
this is what it does
*
```

when I say some_param_command_comment->getParagraph->getSourceRange()
(pseudocode).

Is there a better way to do this?

Thank you.

-Zac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20160907/47a45e39/attachment.html>


More information about the cfe-users mailing list