[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 02:11:23 PDT 2026


================
@@ -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


More information about the cfe-commits mailing list