[Modules] Implement ODR-like semantics for tag types in C/ObjCAllow ODR for ObjC/C in the sense that we won't keep more thatone definition around (merge them). However, ensure the declpass the st
[Modules] Implement ODR-like semantics for tag types in C/ObjCAllow ODR for ObjC/C in the sense that we won't keep more thatone definition around (merge them). However, ensure the declpass the structural compatibility check in C11 6.2.7/1, for that,reuse the structural equivalence checks used by the ASTImporter.Few other considerations:- Create error diagnostics for tag types mismatches and threadthem into the structural equivalence checks.- Note that by doing this we only support redefinition between typesthat are considered "compatible types" by C.This is mixed approach of the suggestions discussed inhttp://lists.llvm.org/pipermail/cfe-dev/2017-March/053257.htmlDifferential Revision: https://reviews.llvm.org/D31778rdar://problem/31909368llvm-svn: 306918
show more ...