This is an archive of the discontinued LLVM Phabricator instance.

[clang][ASTImporter] Add support for import of UsingPackDecl.
ClosedPublic

Authored by balazske on May 19 2022, 8:58 AM.

Diff Detail

Event Timeline

balazske created this revision.May 19 2022, 8:58 AM
Herald added a reviewer: shafik. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
balazske requested review of this revision.May 19 2022, 8:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 8:58 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
martong added inline comments.May 20 2022, 1:19 AM
clang/lib/AST/ASTImporter.cpp
4861

Why don't we use addDeclToContexts?

clang/unittests/AST/ASTImporterTest.cpp
925

Should we also check if the DeclContext and the Extensions are properly set?

balazske added inline comments.
clang/lib/AST/ASTImporter.cpp
4861

I do not know, it is not used in the other import functions of using related declarations. Probably only lexical DC is applicable for these, or the code is older than addDeclToContexts and was not updated. But then the other import functions should be changed too.

clang/unittests/AST/ASTImporterTest.cpp
925

I will add a more detailed test.

balazske updated this revision to Diff 430990.May 20 2022, 8:58 AM

Use of addDeclToContexts, added new test.

martong accepted this revision.May 26 2022, 6:04 AM

LGTM! Thanks! And sorry for the delay in the review, please ping me next time.

This revision is now accepted and ready to land.May 26 2022, 6:04 AM