REPL implementations don't have an easy way to know that an expression has been evaluated, so I'm adding a simple function for that. In the future we can add another hook for meta commands.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| lldb/include/lldb/Expression/REPL.h | ||
|---|---|---|
| 115–120 | Why not return a Status object instead of having the return type be void? Or instead of Status you could use llvm::Error so we are forced to check it. | |
| lldb/include/lldb/Expression/REPL.h | ||
|---|---|---|
| 115–120 | my initial idea was to make this a simple observer, but a llvm::Error is probably more generic. I'll do that | |
| lldb/include/lldb/Expression/REPL.h | ||
|---|---|---|
| 124 | Do you still need the Status parameter? | |
| lldb/include/lldb/Expression/REPL.h | ||
|---|---|---|
| 124 | that status is the result of the expression evaluation, so it's useful to have it here | |
Why not return a Status object instead of having the return type be void? Or instead of Status you could use llvm::Error so we are forced to check it.