Commit c51a758
authored
[lldb][test] Add SBExpressionOptions parameter to expect_expr (llvm#177920)
Allows API tests to pass `SBExpressionOptions` when testing a successful
expression evaluation with `expect_expr`. Currently one would have to
use `SBFrame::EvaluateExpression` or pass the option as an argument to
the raw command (via `expect()` or `HandleCommand()`).
Chose not to do the `SetIgnoreBreakpoints`/`SetAutoApplyFixIts` with the
assumption that most expression evaluation tests don't actually need to
care about these. If the options are passed explicitly, lets use them
as-is. Otherwise default to the old options.
First usage of this new parameter would be in
llvm#1779261 parent 00e2649 commit c51a758
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2575 | 2575 | | |
2576 | 2576 | | |
2577 | 2577 | | |
| 2578 | + | |
2578 | 2579 | | |
2579 | 2580 | | |
2580 | 2581 | | |
| |||
2584 | 2585 | | |
2585 | 2586 | | |
2586 | 2587 | | |
| 2588 | + | |
2587 | 2589 | | |
2588 | 2590 | | |
2589 | 2591 | | |
2590 | 2592 | | |
2591 | 2593 | | |
2592 | 2594 | | |
2593 | 2595 | | |
2594 | | - | |
2595 | 2596 | | |
2596 | | - | |
2597 | | - | |
| 2597 | + | |
| 2598 | + | |
2598 | 2599 | | |
2599 | | - | |
2600 | | - | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
2601 | 2605 | | |
2602 | 2606 | | |
2603 | 2607 | | |
| |||
0 commit comments