[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2025-02-18 Thread via cfe-commits
https://github.com/circl-lastname closed https://github.com/llvm/llvm-project/pull/117770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-12-09 Thread Aaron Ballman via cfe-commits
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl( } EmbedAnnotationData *Data = new (BP) EmbedAnnotationData; + Data->Filename = Filename; + Data->IsAngled = IsAngled; Data->BinaryData = BinaryContents; AaronBallman wrote: I think th

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread via cfe-commits
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl( } EmbedAnnotationData *Data = new (BP) EmbedAnnotationData; + Data->Filename = Filename; + Data->IsAngled = IsAngled; Data->BinaryData = BinaryContents; circl-lastname wrote: I'm not

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread via cfe-commits
@@ -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

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread via cfe-commits
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl( } EmbedAnnotationData *Data = new (BP) EmbedAnnotationData; + Data->Filename = Filename; + Data->IsAngled = IsAngled; Data->BinaryData = BinaryContents; circl-lastname wrote: What if

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread via cfe-commits
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl( } EmbedAnnotationData *Data = new (BP) EmbedAnnotationData; + Data->Filename = Filename; + Data->IsAngled = IsAngled; Data->BinaryData = BinaryContents; circl-lastname wrote: Similar

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread via cfe-commits
circl-lastname wrote: > We probably want a changelog I put it in the C23 features section, if that's ok https://github.com/llvm/llvm-project/pull/117770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread via cfe-commits
https://github.com/circl-lastname updated https://github.com/llvm/llvm-project/pull/117770 >From 184359e8be9eab570ef01810d5d3a6ba4a48afe9 Mon Sep 17 00:00:00 2001 From: circl Date: Tue, 26 Nov 2024 18:52:19 +0100 Subject: [PATCH 1/2] [clang] Store filename in EmbedExpr --- clang/include/clang

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread Mariya Podchishchaeva via cfe-commits
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl( } EmbedAnnotationData *Data = new (BP) EmbedAnnotationData; + Data->Filename = Filename; + Data->IsAngled = IsAngled; Data->BinaryData = BinaryContents; Fznamznon wrote: None that I c

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread via cfe-commits
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl( } EmbedAnnotationData *Data = new (BP) EmbedAnnotationData; + Data->Filename = Filename; + Data->IsAngled = IsAngled; Data->BinaryData = BinaryContents; circl-lastname wrote: Is there

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread Mariya Podchishchaeva via cfe-commits
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl( } EmbedAnnotationData *Data = new (BP) EmbedAnnotationData; + Data->Filename = Filename; + Data->IsAngled = IsAngled; Data->BinaryData = BinaryContents; Fznamznon wrote: I struggle to

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-27 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon commented: Thank you for the fix! I wonder if the new change be tested somehow? Also, we probably need to update Serialization code with handling for the new fields of `EmbedExpr`. https://github.com/llvm/llvm-project/pull/117770

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: circl (circl-lastname) Changes Fixes #107869 Due to the other FIXMEs in `#embed` code, this doesn't yet handle offsets, prefixes, and if_empty, however I feel it's a good start, and preferable to crashing. ![Screenshot_20241126_192631](

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-26 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-11-26 Thread via cfe-commits
https://github.com/circl-lastname created https://github.com/llvm/llvm-project/pull/117770 Fixes #107869 Due to the other FIXMEs in `#embed` code, this doesn't yet handle offsets, prefixes, and if_empty, however I feel it's a good start, and preferable to crashing. ![Screenshot_20241126_1926