[cfe-dev] New signatures for Preprocessor and ASTContext constructors

David Blaikie dblaikie at gmail.com
Thu Nov 10 07:50:13 PST 2011


> Next, I'm also creating an ASTContext, but the compiler doesn't accept the
> instance of Builtin::Context i'm passing into, because It identifies the
> instance as clang::Builtin::Context(&)() instead of
> clang::Builtin::Context&, unsigned int, bool). ¿How can I build an instance
> of Builtin::Context properly?

That looks like you have a reference to a function that returns a
Context, so you probably need to change this:

Builtin::Context

to this:

Builtin::Context()

I hope that helps,
- David




More information about the cfe-dev mailing list