[PATCH] D127284: [clang-repl] Support statements on global scope in incremental mode.

Vassil Vassilev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 11 13:13:04 PST 2022


v.g.vassilev marked an inline comment as done.
v.g.vassilev added inline comments.


================
Comment at: clang/test/Interpreter/execute-stmts.cpp:34
+
+for (; i > 4; --i) printf("i = %d\n", i);
+// CHECK-NEXT: i = 5
----------------
UnionType wrote:
> It seems that top-level statements wrapped in braces cannot be handled, maybe I made a mistake.
> ```
> for (; i > 4; --i) { printf("i = %d\n", i); }
> 
> { i++; }
> ```
Ah, you are right. I have a fix for this case here: https://reviews.llvm.org/D139798


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127284/new/

https://reviews.llvm.org/D127284



More information about the cfe-commits mailing list