[cfe-dev] Undeclared builtin identifiers in C++
Oscar Neilson
on502 at york.ac.uk
Fri Feb 11 11:36:52 PST 2011
> With files that use standard library types I get errors about
> undeclared builtin identifiers:
I wasn't calling InitializeBuiltins on the Preprocessor BuiltinContext
but on one I constructed to pass in to my ASTContext. Correcting this
fixes the errors.
------------------------------------------------------------
preprocessor.getBuiltinInfo().InitializeBuiltins(preprocessor.getIdentifierTable(),
preprocessor.getLangOptions());
------------------------------------------------------------
Oscar
More information about the cfe-dev
mailing list