Skip to content

Commit 89953d7

Browse files
Update clangd_cdt_support.md
1 parent dd24261 commit 89953d7

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

docs/clangd_cdt_support.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
1-
# Clang and Clangd Configuration in Espressif-IDE
1+
# Clangd Configuration in Espressif-IDE
22

3-
Follow the below instructions to configure Clang and Clangd in Espressif-IDE.
3+
Follow the below instructions to configure Clangd in Espressif-IDE.
44

55
## Prerequisites
66
1. Install the latest version of [Espressif-IDE](https://github.com/espressif/idf-eclipse-plugin/blob/master/docs/Espressif-IDE.md#downloads)
77
2. Install the latest version of Eclipse CDT-LSP and it's dependencies using [Update Site](https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/)
88

99
![](images/clangd/cdtlsp_updatesite.png)
1010

11-
## Clang Toolchain Configuration
12-
1. Go to `Window` > `Preferences` > `C/C++` > `Core Build Toolchains`
13-
2. Click `Add...` and choose `clang` and the toolchain settings similar to the below image.
14-
15-
![](images/clangd/clang_compiler_config.png)
16-
17-
3. Go to `Window` > `Preferences` > `C/C++` > `CMake`
18-
4. Click `Add...` and provide CMake Toolchain File for the specific target and select clang compiler from the list as shown below.
19-
20-
![](images/clangd/new_cmake_clang_toolchain_config.png)
21-
2211
## Clangd Configuration
2312
To enable clangd in the C/C++ editor, follow the below steps.
2413

@@ -38,15 +27,6 @@ As we are going to use clangd as the indexer and for editor features, we need to
3827

3928
![](images/clangd/cdt_indexer_disable.png)
4029

41-
## Build with Clang
42-
1. Click on `Edit` configuration for the project
43-
2. Go to `Build Settings` and Choose clang toolchain from the list.
44-
45-
![](images/clangd/build_settings_clang.png)
46-
47-
3. Click on `Ok` and close.
48-
4. Build the project using the new configuration. However, if you want to build using GCC,there is no need to make any changes here.
49-
5030
## Clangd Editor
5131
1. Open any C/C++ file in the project.
5232
2. You should see the Clangd features in the editor.

0 commit comments

Comments
 (0)