online
online copied to clipboard
cool#9772: VSCodium/clangd: Add generation of .clangd and .vscode files to ease editing via IDE/language-server
Change-Id: Ic53e554598302e0b5e67568c6b72b9be1bd890a4
- Resolves: #9772
- Target version: master
Summary
Initial integration of .clangd via make gen-clangd
and vscode via make gen-vscode
, for
- compile_commands.json
- already supported via make compile_commands
- fixed with earlier commit
- .clangd
- in addition to compile_commands.json (CompileFlags), allowing setting include defaults, workspace-dir as well as other clangd settings: Index, Diagnostics (clang-tidy IDE setup), InlayHints (IDE), Hover (IDE).
- .vscode/settings.json
- VSCodium workspace settings (actually empty)
- .vscode/online.code-workspace
- VSCodium workspace project file (proposal)
New make targets:
-
gen-clangd
Produces.clangd
andcompile_commands.json
files -
gen-vscode
Produces.clangd
and andcompile_commands.json
files and.vscode
directory. -
clean-clangd
removes.clangd
file. -
clean-vscode
removes.clangd
file and.vscode
directory.
Note: The clang* setup has been tested with
- VSCodium Version: 1.91.1, Release: 24193, Commit: 8512cb3341b26a5dba985a9a17eed8d7c3362886, Date: 2024-07-11T18:37:10.462Z
- Eclipse cdt-jsp: C/C++ LSP Support , 2.1.0.202408070815, org.eclipse.cdt.lsp.feature.feature.group, Eclipse CDT
TODO
Maybe we can refine
- Documentation (manuals or wiki) ?
Checklist
- [X] I have run
make prettier-write
and formatted the code. - [x] All commits have Change-Id
- [x] I have run tests with
make check
- [x] I have issued
make run
and manually verified that everything looks okay - [ ] Documentation (manuals or wiki) has been updated or is not required