[PATCH] D66999: [ASTImporter][NFC] Add comments to code where we cannot use HandleNameConflict

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 30 15:28:30 PDT 2019


shafik added inline comments.


================
Comment at: clang/lib/AST/ASTImporter.cpp:3454
         << FoundField->getType();
-
+      // This case is not handled with HandleNameConflict, because by the time
+      // when we reach here, the enclosing class is already imported. If there
----------------
Do we have an example that hits this case?


================
Comment at: clang/lib/AST/ASTImporter.cpp:5262
+      // template.
+      // FIXME Perhaps return with a different error?
       return make_error<ImportError>(ImportError::NameConflict);
----------------
I believe this is ill-formed no diagnostic required. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D66999





More information about the cfe-commits mailing list