[PATCH] D32981: [ASTImporter] Improve handling of incomplete types

Sean Callanan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 10 11:22:50 PDT 2017


spyffe marked an inline comment as done.
spyffe added inline comments.


================
Comment at: lib/AST/ASTImporter.cpp:1757
       D2->setAnonymousStructOrUnion(true);
+    if (PrevDecl) {
+      D2->setPreviousDecl(PrevDecl);
----------------
a.sidorin wrote:
> By the way, should we do the same for some other kinds of Decls (like FunctionDecl)? If so, could you write a NOTE comment?
I added this as a `FIXME`, in the style of the other notes about incomplete implementation in this file.


https://reviews.llvm.org/D32981





More information about the cfe-commits mailing list