================
@@ -6044,6 +6048,14 @@ class Sema final : public SemaBase {
                         StringEvaluationContext EvalContext,
                         bool ErrorOnInvalidMessage);
 
+  // In addition to failing to work out a good name for this, I worked out how
+  // to make diagnostics that point to the evaluated string, but the ~proof~
+  // implementation is too large to fit in this PR.
+  std::optional<std::string>
+  EvaluateAsAnyKindOfConstantStringYo(Expr *String,
----------------
cor3ntin wrote:

I think `EvaluateAsString` is enough, you can use different 
`StringEvaluationContext` for different sets, yo!

https://github.com/llvm/llvm-project/pull/136828
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to