[cfe-dev] Checking Comments With A Plugin

Dmitri Gribenko gribozavr at gmail.com
Fri Oct 25 18:16:52 PDT 2013


On Fri, Oct 25, 2013 at 6:12 PM, Sean Silva <silvas at purdue.edu> wrote:
> You can get the comment attached to a Decl with
> ASTContext::getRawCommentForDeclNoCache(), but I'm not sure if we support
> something as powerful as, say, iterating over every comment in the TU.

-fparse-all-comments option forces Clang to retain all comments in
ASTContext::Comments (by default it will only include comments with
documentation syntax).

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-dev mailing list