Commit 2267c5f
committed
[lldb/Interpreter] Make Scripted*Interface base class abstract
This patch makes the various Scripted Interface base class abstract by
making the `CreatePluginObject` method pure virtual.
This means that we cannot construct a Scripted Interface base class
instance, so this patch also updates the various
`ScriptedInterpreter::CreateScripted*Interface` methods to return a
`nullptr` instead.`
This patch also removes the `ScriptedPlatformInterface` member from the
`ScriptInterpreter` class since it the interpreter can be owned by the
`ScriptedPlatform` instance itself, like we do for `ScriptedProcess` objects.
Signed-off-by: Med Ismail Bennani <[email protected]>1 parent 45ca24e commit 2267c5f
6 files changed
Lines changed: 12 additions & 27 deletions
File tree
- lldb
- include/lldb/Interpreter
- Interfaces
- source
- Interpreter
- Plugins/ScriptInterpreter/Python
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 154 | + | |
158 | 155 | | |
159 | 156 | | |
160 | 157 | | |
| |||
559 | 556 | | |
560 | 557 | | |
561 | 558 | | |
562 | | - | |
| 559 | + | |
563 | 560 | | |
564 | 561 | | |
565 | 562 | | |
566 | | - | |
| 563 | + | |
567 | 564 | | |
568 | 565 | | |
569 | 566 | | |
570 | | - | |
| 567 | + | |
571 | 568 | | |
572 | 569 | | |
573 | | - | |
574 | | - | |
| 570 | + | |
| 571 | + | |
575 | 572 | | |
576 | 573 | | |
577 | 574 | | |
| |||
599 | 596 | | |
600 | 597 | | |
601 | 598 | | |
602 | | - | |
603 | 599 | | |
604 | 600 | | |
605 | 601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
431 | | - | |
432 | 430 | | |
433 | 431 | | |
434 | 432 | | |
| |||
0 commit comments