[cfe-dev] Finding source ranges of all pragmas?

Maxim Kalinin kalinin.maxim at gmail.com
Tue Jul 8 12:59:47 PDT 2014


Hello,

I'm trying to find location of all #pragmas with libclang C++ interface.
PPCallbacks class has PragmaDirective hook, but it gives only
SourceLocation where the pragma starts, not the whole range. And
apparently there's no VisitPragmaDecl method in ASTVisitor. What are my
options?

-- 
Maxim.




More information about the cfe-dev mailing list