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

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 14:17:08 PDT 2025


================
@@ -4567,8 +4567,9 @@ namespace {
                             Reader.getOwningModuleFile(Cat)) {
           StructuralEquivalenceContext::NonEquivalentDeclSet NonEquivalentDecls;
           StructuralEquivalenceContext Ctx(
-              Cat->getASTContext(), Existing->getASTContext(),
-              NonEquivalentDecls, StructuralEquivalenceKind::Default,
+              Reader.getContext().getLangOpts(), Cat->getASTContext(),
+              Existing->getASTContext(), NonEquivalentDecls,
+              StructuralEquivalenceKind::Default,
               /*StrictTypeSpelling =*/false,
               /*Complain =*/false,
               /*ErrorOnTagTypeMismatch =*/true);
----------------
shafik wrote:

```suggestion
              /*StrictTypeSpelling=*/false,
              /*Complain=*/false,
              /*ErrorOnTagTypeMismatch=*/true);
```

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


More information about the cfe-commits mailing list