[cfe-dev] Where to implement __is_convertible_to?

Steven Watanabe watanabesj at gmail.com
Mon Sep 6 20:28:24 PDT 2010


AMDG

  VC++ has an intrinsic __is_convertible_to.  I've started
implementing it, but here's the problem:  The existing
type traits are implemented in ExprCXX.cpp, and are
passed an ASTContext only.  However, the only way that
I see to implement this trait (using InitializationSequence)
requires a Sema which is not available in the places where
EvaluateTrait is called from.  Any ideas?

In Christ,
Steven Watanabe




More information about the cfe-dev mailing list