[clang] [Clang][WIP] Constant Expressions inside of gcc'asm strings (PR #131003)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 12 11:43:50 PDT 2025


================
@@ -15328,6 +15338,15 @@ void Sema::PragmaStack<Sema::AlignPackInfo>::Act(SourceLocation PragmaLocation,
                                                  PragmaMsStackAction Action,
                                                  llvm::StringRef StackSlotLabel,
                                                  AlignPackInfo Value);
+
+inline
+const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
+                                    Sema::StringEvaluationContext Ctx) {
+  DB << llvm::to_underlying(Ctx);
----------------
erichkeane wrote:

This is a shame... an-inverse-string-switch here would be nice.

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


More information about the cfe-commits mailing list