[cfe-dev] libtooling: how to parse #include directive
Don Hinton via cfe-dev
cfe-dev at lists.llvm.org
Tue Oct 31 13:46:35 PDT 2017
Please take a look at this clang-tidy check which uses preprocessor
callbacks instead of ASTMatchers.
https://clang.llvm.org/extra/doxygen/IncludeOrderCheck_8cpp_source.html
It just reorders them, but you should be able to use it as template...
hth...
don
On Tue, Oct 31, 2017 at 12:53 PM, Valerio via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> Hi *,
> I would like to match and then rewrite “#include” directives, is it
> possible via libtooling’s API ?
> how can I use ASTMatcher for matching “#include” directives ?
>
> thanks!
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20171031/65bb5c77/attachment.html>
More information about the cfe-dev
mailing list