[clang] [C23] Implement WG14 N3037 (PR #132939)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 7 10:00:33 PDT 2025


================
@@ -11399,6 +11400,22 @@ static QualType mergeEnumWithInteger(ASTContext &Context, const EnumType *ET,
   return {};
 }
 
+QualType ASTContext::mergeTagTypes(QualType LHS, QualType RHS) {
----------------
erichkeane wrote:

What about `mergeTagDefinitions`?  I don't have a good idea here otherwise, but it isn't really merging tag-types so much as just their definitions?

Also perhaps even in NOT the C2(whatever) mode: what about returning the 'not definition' (assuming 1 is a definition and 1 isnt?).  it makes it a no-op in that case, but perhaps one that is sensible.

https://github.com/llvm/llvm-project/pull/132939


More information about the cfe-commits mailing list