Skip to content

Commit c021362

Browse files
Add dummy C++ project for interactive tests
1 parent 874e9ac commit c021362

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

sample-project/compile_commands.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"file": "some_file.cpp",
4+
"command": "clang++ -std=c++17 -x c++ -g some_file.cpp -c -o /tmp/some_file.o"
5+
},
6+
{
7+
"file": "some_other_file.cpp",
8+
"command": "clang++ -std=c++17 -x c++ -g some_other_file.cpp -c -o /tmp/some_other_file.o"
9+
}
10+
]

sample-project/some_file.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
struct SomeSymbol {
2+
int with_member;
3+
};
4+
5+
namespace some_namespace {
6+
using some_other_symbol = SomeSymbol;
7+
8+
int some_function(int) { return 0; }
9+
} // namespace some_namespace

sample-project/some_other_file.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
struct AlsoASymbol {
2+
int with_member_too;
3+
};
4+
5+
bool some_other_function(AlsoASymbol& x) { return true; }

0 commit comments

Comments
 (0)