Currently we do not import the implicit CXXRecordDecl of a
ClassTemplateSpecializationDecl. This patch fixes it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/AST/ASTImporter.cpp | ||
---|---|---|
1962 ↗ | (On Diff #147466) | We are changing import if RecordDecl. Is it possible to add a test that doesn't require templates? |
Comment Actions
- Add new test case for simple CXXRecordDecl
- Add comment about ClassTemplateSpecializationDecl implicit CXXRecordDecl
lib/AST/ASTImporter.cpp | ||
---|---|---|
1962 ↗ | (On Diff #147466) | Yes, I've added a new test which exercises only a RecordDecl. |
Comment Actions
LGTM with a nit.
lib/AST/ASTImporter.cpp | ||
---|---|---|
1962 ↗ | (On Diff #147994) | Multiline comments are pretty uncommon in LLVM. Could you please replace it with // before commit? I.e. if (Definition && Definition != D && // // !D->isImplicit()) |