]> granicus.if.org Git - clang/commit
Rewrite type compatibility testing to do type merging rather than just
authorEli Friedman <eli.friedman@gmail.com>
Fri, 22 Aug 2008 00:56:42 +0000 (00:56 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 22 Aug 2008 00:56:42 +0000 (00:56 +0000)
commit3d815e7eb56c25d7ed812eced32e41df43039f9a
tree25fe2d71c1f33a5920ccf73ffe3641c1734efc06
parentd8bfe7f25a695ca947effbccdf9ecbe3e018e221
Rewrite type compatibility testing to do type merging rather than just
testing compatibility.  This is necessary for some constructs, like merging
redeclarations.

Also, there are some ObjC changes to make sure that
typesAreCompatible(a,b) == typesAreCompatible(b,a).  I don't have any
ObjC code beyond the testsuite, so please tell me if there are any cases
where this doesn't behave as expected.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55158 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp