Commit ce63f3e
committed
[lldb/API] Introduce SBOptional class
This class acts as a wrapper around other SB instances.
It makes use of `std::any` to store any kind of object and keeps that of
the type it was initialized with by storing a enum value for each type.
I was thinking using std::variant but ran into some issues when some
move-only SB types (i.e. SBStream).
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>1 parent 38b33bb commit ce63f3e
File tree
6 files changed
+1046
-0
lines changed- lldb
- bindings
- include/lldb/API
- source/API
6 files changed
+1046
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
0 commit comments