Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Added vscode debug, settings and extension config #37

Open
wants to merge 1 commit into
base: llvmorg-10.0.0-lsif-clang
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/src/**",
"/usr/include/llvm-10/**",
"/usr/include/llvm-c-10/**",
"/usr/include/clang/**"
],
"defines": [],
"compilerPath": "/usr/bin/clang-10",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "clang-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
41 changes: 41 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
/* {
"type": "lldb",
"request": "launch",
"name": "Launch",
"program": "${workspaceFolder}/bin/lsif-clang",
"args": ["build/compile_commands.json"],
"cwd": "${workspaceFolder}/src"
}, */
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/lsif-clang",
"args": ["build/compile_commands.json"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/src",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"additionalSOLibSearchPath": "/usr/lib/x86_64-linux-gnu/debug/;/usr/lib/x86_64-linux-gnu/debug/",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Auto load symbols when loading an .so file",
"text": "set auto-solib-add",
"ignoreFailures": false
}
]
}
]
}
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// we keep this extension for debugging
"C_Cpp.intelliSenseEngine": "Disabled",
"C_Cpp.autocomplete": "Disabled", // So you don't get autocomplete from both extensions.
"C_Cpp.errorSquiggles": "Disabled", // So you don't get error squiggles from both extensions (clangd's seem to be more reliable anyway).
"clangd.path": "/usr/bin/clangd",
"clangd.arguments": ["-pretty", "--background-index", "--compile-commands-dir=/workspace/lsif-clang"],
"[cpp]": {
"editor.tabSize": 2,
"editor.insertSpaces": true
},
"cmake.configureOnOpen": false,
"cmake.configureOnEdit": false,
}