[clang] [clang-repl] Refactor locking of runtime PTU stack (NFC) (PR #84176)

Stefan Gränitz via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 08:33:46 PST 2024


================
@@ -137,9 +136,10 @@ class Interpreter {
 
   Expr *SynthesizeExpr(Expr *E);
 
-private:
   size_t getEffectivePTUSize() const;
+  void finalizeInitPTUStack();
----------------
weliveindetail wrote:

We could also consider renaming this to `getNumUndoSteps()` and `setUndoBarrier()` respectively (or some thing like that).

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


More information about the cfe-commits mailing list