[PATCH] D49235: [ASTImporter] Import described template (if any) of function.
Aleksei Sidorin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 14 22:23:38 PDT 2018
a_sidorin added a comment.
Hello Balasz,
This looks mostly good but I have a question inline.
================
Comment at: lib/AST/ASTImporter.cpp:2715
+ if (auto *ToFT = dyn_cast<FunctionTemplateDecl>(Importer.Import(FromFT)))
+ ToFunction->setDescribedFunctionTemplate(ToFT);
+ else
----------------
The function template should be already set after `getDescribedFunctionTemplate()` is imported in `VisitFunctionTemplateDecl()`. Are there still cases not covered by this?
Repository:
rC Clang
https://reviews.llvm.org/D49235
More information about the cfe-commits
mailing list