[all-commits] [llvm/llvm-project] 5ff27f: [clang-repl] Recover the lookup tables of the prim...
Purva-Chaudhari via All-commits
all-commits at lists.llvm.org
Sat May 28 22:00:06 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5ff27fe1ff03d5aeaf8567c97618170f0cef8f58
https://github.com/llvm/llvm-project/commit/5ff27fe1ff03d5aeaf8567c97618170f0cef8f58
Author: Purva-Chaudhari <purva.chaudhari02 at gmail.com>
Date: 2022-05-29 (Sun, 29 May 2022)
Changed paths:
M clang/lib/Interpreter/IncrementalParser.cpp
M clang/test/Interpreter/execute.cpp
Log Message:
-----------
[clang-repl] Recover the lookup tables of the primary context.
Before this patch, there was re-declaration error if error was encountered in
the same line. The recovery support acted only if this type of error was
encountered in the first line of the program and not in subsequent lines.
For example:
```
clang-repl> int i=9;
clang-repl> int j=9; err;
input_line_3:1:5: error: redefinition of 'j'
int j = 9;
```
Differential revision: https://reviews.llvm.org/D123674
More information about the All-commits
mailing list