[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 27 11:19:00 PST 2024
================
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl(
}
EmbedAnnotationData *Data = new (BP) EmbedAnnotationData;
+ Data->Filename = Filename;
+ Data->IsAngled = IsAngled;
Data->BinaryData = BinaryContents;
----------------
Sirraide wrote:
> where can we store the filename string to manage the memory in a good way?
Can’t we just copy the string data into the ASTContext’s allocator and store a StringRef to it, or am I missing something here?
https://github.com/llvm/llvm-project/pull/117770
More information about the cfe-commits
mailing list