[clang] [clang][ASTImporter] skip TemplateTypeParmDecl in VisitTypeAliasTemplateDecl (PR #74919)

Balázs Kéri via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 09:06:57 PST 2023


balazske wrote:

This code for the loop in `VisitTypeAliasTemplateDecl` should work:
```
    for (auto *FoundDecl : FoundDecls) {
      if (!FoundDecl->isInIdentifierNamespace(IDNS))
        continue;
      if (auto *FoundAlias = dyn_cast<TypeAliasTemplateDecl>(FoundDecl)) {
        if (IsStructuralMatch(D, FoundAlias))
          return Importer.MapImported(D, FoundAlias);

        ConflictingDecls.push_back(FoundDecl);
      }
    }
```

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


More information about the cfe-commits mailing list