Skip to content

Commit

Permalink
Fixed clangd in ROS workspace.
Browse files Browse the repository at this point in the history
Adding a .clangd file in the root of the repo causes it to be used even
if cactus-rt is developed as a part of a ROS package, which causes
clangd to not show the appropriate completion data. By moving it into a
vscode config, we get around this problem for now.
  • Loading branch information
shuhaowu committed Aug 4, 2024
1 parent 3463016 commit ae2190f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
9 changes: 0 additions & 9 deletions .clangd

This file was deleted.

5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"editor.formatOnSave": true,
"[cpp]": {
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
}
},
"clangd.arguments": [
"--compile-commands-dir=${workspaceFolder}/build/debug"
]
}

0 comments on commit ae2190f

Please sign in to comment.