[clang] [clang][ASTImporter] IdentifierInfo of Attribute should be set using 'ToASTContext' (PR #73290)

Qizhi Hu via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 24 00:59:30 PST 2023


jcsxky wrote:

> I think it is better to add the import of AttrName to the attribute import code (function `Import(const Attr *FromAttr)` and what is called from it). Probably it works to add it to `AttrImporter::cloneAttr` and do it like `const IdentifierInfo *ToAttrName = Importer.Import(FromAttr->getAttrName());`.

Fixed according to your guidance.

https://github.com/llvm/llvm-project/pull/73290


More information about the cfe-commits mailing list