1#include <string>
2#include <vector>
3
4struct bar {
5 int var1;
6};
7
8struct foo {
9 int var1;
10 bar *my_bar_pointer;
11 bar my_bar_object;
12 foo *next_foo;
13};
14
15struct baz {
16 char c;
17};
18
19int fun(std::vector<baz> var) {
20 return var.size(); // breakpoint 1
21}
22
23int main(int argc, char const *argv[]) {
24 int var1 = 0;
25 int var2 = 1;
26 std::string str1 = "a";
27 std::string str2 = "b";
28 std::vector<baz> vec;
29 fun(var: vec);
30 bar bar1 = {.var1: 2};
31 bar *bar2 = &bar1;
32 foo foo1 = {.var1: 3, .my_bar_pointer: &bar1, .my_bar_object: bar1, NULL};
33 return 0; // breakpoint 2
34}
35

source code of lldb/test/API/tools/lldb-dap/completions/main.cpp