Skip to content

Commit eed8299

Browse files
committed
chore: configure proper C++ IntelliSense for VSCode
1 parent 50bc2b8 commit eed8299

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.vscode/c_cpp_properties.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Linux",
5+
"includePath": [
6+
"${workspaceFolder}/include/**"
7+
],
8+
"defines": [],
9+
"compilerPath": "/usr/bin/clang",
10+
"cStandard": "c17",
11+
"cppStandard": "c++20",
12+
"intelliSenseMode": "linux-clang-x64",
13+
"browse": {
14+
"limitSymbolsToIncludedHeaders": true
15+
},
16+
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
17+
}
18+
],
19+
"version": 4
20+
}

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ project("PythonMonkey"
1111
set(CMAKE_CXX_STANDARD 20)
1212
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1313
set(CMAKE_CXX_EXTENSIONS OFF)
14+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1415

1516
# Add an external; appends to `PYTHONMONKEY_EXTERNAL_FILES` in the parent scope.
1617
function(pythonmonkey_add_external PYTHONMONKEY_EXTERNAL)

0 commit comments

Comments
 (0)