This is an archive of the discontinued LLVM Phabricator instance.

[clang][ASTImporter] Add import API for 'const Type *' (NFC).
ClosedPublic

Authored by balazske on Mar 19 2021, 7:49 AM.

Details

Summary

There was only an Import function for QualType but not for Type.
For correct import of some AST nodes where not QualType is used
an import of Type * is needed. (It is the case with
FieldDecl::getCapturedVLAType.)

Diff Detail

Event Timeline

balazske created this revision.Mar 19 2021, 7:49 AM
balazske requested review of this revision.Mar 19 2021, 7:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2021, 7:49 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
balazske retitled this revision from [clang][ASTImporter] Add import API for 'const Type *'. to [clang][ASTImporter] Add import API for 'const Type *' (NFC)..Mar 19 2021, 7:56 AM
balazske added a reviewer: teemperor.
teemperor accepted this revision.Mar 19 2021, 8:48 AM

LGTM, thanks!

This revision is now accepted and ready to land.Mar 19 2021, 8:48 AM
shafik accepted this revision.Mar 19 2021, 9:44 AM

Can we add a test for the getCapturedVLAType case?

Can we add a test for the getCapturedVLAType case?

The test is added here: D99062

martong accepted this revision.Mar 22 2021, 3:28 AM

LG! Thanks!

Thank you for adding the test!