When a function is imported, check if it has a described template.
The name lookup is corrected to find the templated entity in this case.
The described template of the function is imported too.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
Hello Balasz,
This looks mostly good but I have a question inline.
lib/AST/ASTImporter.cpp | ||
---|---|---|
2755 | The function template should be already set after getDescribedFunctionTemplate() is imported in VisitFunctionTemplateDecl(). Are there still cases not covered by this? |
lib/AST/ASTImporter.cpp | ||
---|---|---|
2755 | Yes this call can be omitted. But check of return value of Import is needed (the current code is not good: nullptr is not accepted by dyn_cast). |
The function template should be already set after getDescribedFunctionTemplate() is imported in VisitFunctionTemplateDecl(). Are there still cases not covered by this?