[cfe-dev] CompilerInstance and C++
Manuel Klimek
klimek at google.com
Wed Sep 4 10:02:13 PDT 2013
On Wed, Sep 4, 2013 at 5:50 PM, Vadium <vabrva at gmail.com> wrote:
> Faced the same error, was quite surprised...
>
> > With libclang you have less control than with libtooling, but libclang is
> > a higher abstraction and more stable interface.
>
> And is there any way to get current ASTContext and LangOptions inside the
> tool?
>
Yes: if you have a compilation database, the language options will be
provided by the clang arguments used there; otherwise you can specify the
options yourself. The idea is to use command line options, though.
Cheers,
/Manuel
> Thank you,
> Vadim
>
>
>
> -----
> Since speech has been invented, people still can't understand each other.
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/CompilerInstance-and-C-tp4030731p4034239.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130904/82c47333/attachment.html>
More information about the cfe-dev
mailing list