[clang] [llvm] Ast importer visitors (PR #138838)

Balázs Kéri via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 20 01:27:00 PDT 2025


================
@@ -1039,6 +1058,177 @@ Expected<ConceptReference *> ASTNodeImporter::import(ConceptReference *From) {
   return ConceptRef;
 }
 
+StringRef ASTNodeImporter::ImportASTStringRef(StringRef FromStr) {
----------------
balazske wrote:

Probably an explanation can be added about use of this function. A `StringRef` can be a pointer to any string and normally the object where the string resides should be imported (if there is such case), not only the string. If there is no such object (and the string was originally allocated in the same way) then this function can be used.

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


More information about the llvm-commits mailing list