This is an archive of the discontinued LLVM Phabricator instance.

[AST] Implemented missing import for the Template type parameter and Injected Class Name in ASTImporter class.
Needs ReviewPublic

Authored by esakella on Feb 9 2016, 7:33 AM.

Details

Summary

-Implemented the VisitTemplateTypeParmType and VisitInjectedClassNameType functions in the ASTImporter class, and also enabled the import of the definition of the template class.

-Edited the existing tests to check for the import of these ASTNodes.

Diff Detail

Event Timeline

esakella updated this revision to Diff 47318.Feb 9 2016, 7:33 AM
esakella retitled this revision from to [AST] Implemented missing import for the Template type parameter and Injected Class Name in ASTImporter class..
esakella updated this object.
esakella added reviewers: klimek, bkramer, rsmith.
esakella added subscribers: cfe-commits, karies.

If I apply just the test changes without the rest of the changes, I don't see any failures, so I'm not sure these are effective tests.

If I apply just the test changes without the rest of the changes, I don't see any failures, so I'm not sure these are effective tests.

This happens because also one of the changes is the new line 4304 which triggers the import of the template class definition , which in turn triggers the import of the other two elements.

If you only apply this change and the run the tests, then you see the respective error messages 'error: cannot import unsupported AST node InjectedClassName' and 'error: cannot import unsupported AST node TemplateTypeParm'.

I thought it would be better not to split and add this small change by itself, so I put them all together.