[cfe-dev] extern "C" todos :)
Chris Lattner
sabre at nondot.org
Sun Jan 13 23:32:33 PST 2008
Hi Mike,
Here are some things that would be nice to have:
This parses correctly, but -ast-dump dies, please add dumper support:
extern "C" typedef void (*PF)(); // pointer to extern C function
Also, this implies that the extern "C"'ness should really be part of
the decl's type, what do you think? Alternatively, does this mean
that the PF variable decl is 'extern c'?
This doesn't parse, but GCC doesn't accept it either. Is it ok?:
void foo() {
extern "C" typedef void (*PF)();
}
-Chris
More information about the cfe-dev
mailing list