[PATCH] D123775: [AST] Support template declaration found through using-decl for QualifiedTemplateName.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 19 11:36:25 PDT 2022


sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/AST/ASTImporter.cpp:9189
+    TemplateName UnderlyingTN = QTN->getUnderlyingTemplate();
+    if (UsingShadowDecl *USD = UnderlyingTN.getAsUsingShadowDecl()) {
+      if (ExpectedDecl ToUSDOrErr = Import(USD))
----------------
why not just `import(UnderlyingTN)` directly, instead of importing its shadowdecl or templatedecl case-by-case?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123775



More information about the cfe-commits mailing list