urnathan added inline comments.

================
Comment at: clang/lib/AST/ASTImporter.cpp:4654
+
+  return ImportUsingShadowDecls(D, ToUsingEnum);
 }
----------------
martong wrote:
> Could it work if you imported the shadow declarations **before** creating the 
> `UsingEnumDecl`? I yes, then that would be the preferred approach b/c that 
> would fix the `// FIXME: We return error here but the definition is already 
> created`.
Unfortunately the shadow decls refer back to the using decl, so we must do it 
in this order.  This is the same comment as in the existing UsingDecl importer, 
not a new fixme unique to using-enum.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102241/new/

https://reviews.llvm.org/D102241

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to