[clang] [clang][ExprConst] Move getLangOpts() to interp::State subclasses (PR #159280)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 17 06:09:47 PDT 2025


================
@@ -945,6 +945,7 @@ namespace {
     }
 
     ASTContext &getASTContext() const override { return Ctx; }
+    const LangOptions &getLangOpts() const { return Ctx.getLangOpts(); }
----------------
cor3ntin wrote:

Hum, okay i missed that `EvalInfo` inherits from `interp::State` - that's fun

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


More information about the cfe-commits mailing list