[cfe-dev] Implement type merging in ASTContext

Eli Friedman eli.friedman at gmail.com
Tue Aug 19 19:27:22 PDT 2008

Patch per subject, adds a method to query for the merged type for two
types.  This is necessary in a few places per the C standard, like
redeclarations and conditionals, although the effect is usually pretty

I think this patch is pretty close to correct; the one thing I'm
really wondering about is ObjC types.  I don't know what the rules for
compatibility for ObjC types are supposed to be, so the current patch
is mostly just guessing.  The version attached doesn't cause any
regressions in the testsuite, so I think this gets the basics correct,
but I might be missing some cases.  If anyone actually knows the
complete rules, I'd appreciate a patch review or a pointer to the

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typemergev1.txt
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080819/5c37c811/attachment.txt>

More information about the cfe-dev mailing list