Comments outside methods not coming as part of tokens

Hi,

I am using clang_visitChildren and clang_tokenize to visit the AST and tokenize the AST.

But the comments which are outside the methods are not coming as part of tokens

in visitChildren. I have given this as an option in CXTranslationUnit_DetailedPreprocessingRecord in parseTranslationalUnit.

Tried CXTranslationUnit_IncludeBriefCommentsInCodeCompletion also.

Can someone help with this. It is a major blocker for us

Regards,

Himanshu Mishra

201410091712808_BEI0XT4N.gif