Adding source type info to explicit casts.


Please find attached a patch (based on r93149) for adding source type info to all Expr nodes derived from ExplicitCastExpr.

The patch passes all clang tests.

Enea Zaffanella.

ExplicitCast-TypeInfo.patch (41 KB)

Looks good. I'll make the changes in a follow-up patch, but in the future please try to preserve type source information through template instantiation; your patch does a good job and then abandons the source info at the last minute.