[cfe-dev] Unusual cast kinds

Kim Gräsman kim.grasman at gmail.com
Sat Jan 5 02:24:38 PST 2013


Hi all,

In IWYU [1], we traverse the AST trying to deduce if the use of a
symbol requires a full declaration or if a forward declaration is
sufficient.

One of the things we're looking at are cast-expressions, and there are
two kinds we currently don't cover:

 CK_BuiltinFnToFnPtr
 CK_ReinterpretMemberPointer

The docstrings for them don't give examples of what they might look
like, and I'm having trouble coming up with representative examples.
Can anyone help? And maybe add examples to the docstrings for these
two kinds?

Thanks!

- Kim

[1] http://code.google.com/p/include-what-you-use/



More information about the cfe-dev mailing list