[PATCH] D127284: [clang-repl] Support statements on global scope in incremental mode.
tangcp via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 11 07:48:39 PST 2022
UnionType 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
----------------
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++; }
```
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