[clang] [clang] Implement StmtPrinter for EmbedExpr (PR #135957)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 16 07:55:17 PDT 2025
================
@@ -4049,5 +4050,13 @@ void Preprocessor::HandleEmbedDirective(SourceLocation HashLoc, Token &EmbedTok,
if (Callbacks)
Callbacks->EmbedDirective(HashLoc, Filename, isAngled, MaybeFileRef,
*Params);
- HandleEmbedDirectiveImpl(HashLoc, *Params, BinaryContents);
+ // getSpelling may return a string that is actually longer than
+ // FilenameTok.getLength(), so get the string of real length in
----------------
Fznamznon wrote:
> Is that about right?
yes
https://github.com/llvm/llvm-project/pull/135957
More information about the cfe-commits
mailing list