@@ -4,15 +4,14 @@ Most of our users use VSCode so we made a guide for them. These guidelines
44should also work for non-vscode users as well.
55
66!!! info
7-
8- The default "C/C++" extension by VSCode is nice that it can figure a ton
9- of things out about your system automatically. But the way we write code
10- for `libhal` using `conan` makes the extension difficult and slow to use.
11- This is due to the fact that we need to point the extension to the
12- `.conan2/p/` (conan 2 package directory). Because that directory could
13- have a large number of files and multiple version of the same project, it
14- tends to get confused, stop working, or get very slow. We recommend
15- `clangd` because it is fast, helpful, and easy to use.
7+ The default "C/C++" extension by VSCode is nice that it can figure a ton
8+ of things out about your system automatically. But the way we write code
9+ for ` libhal ` using ` conan ` makes the extension difficult and slow to use.
10+ This is due to the fact that we need to point the extension to the
11+ ` .conan2/p/ ` (conan 2 package directory). Because that directory could
12+ have a large number of files and multiple version of the same project, it
13+ tends to get confused, stop working, or get very slow. We recommend
14+ ` clangd ` because it is fast, helpful, and easy to use.
1615
1716## Setup Steps
1817
@@ -30,11 +29,11 @@ Make sure you have already installed clang via the
30295 . Go the the ` clangd ` extension settings page. Find the clangd extension and
3130 press the GEAR ⚙️ icon to open up it settings.
32316 . Find the settings ` clangd: Arguments ` and add:
33- 1 . Linux & Mac: ` --query-driver=**/g++,**/*-g++ `
34- 2 . Windows: ` --query-driver=**/g++.exe,**/*-g++.exe `
32+ 1 . Linux & Mac: ` --query-driver=**/g++,**/*-g++ `
33+ 2 . Windows: ` --query-driver=**/g++.exe,**/*-g++.exe `
35347 . On Mac change ` Clangd: Path ` to:
36- 1 . Intel Mac 13: ` /usr/local/opt/llvm@17/bin/clang++ `
37- 2 . All other versions: ` /opt/homebrew/opt/llvm@17/bin/clangd `
35+ 1 . Intel Mac 13: ` /usr/local/opt/llvm@17/bin/clang++ `
36+ 2 . All other versions: ` /opt/homebrew/opt/llvm@17/bin/clangd `
3837
3938Clangd arguments should look like this:
4039
0 commit comments