1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:37:45 +00:00

Documentation: Recommend disabling clangd's IncludeCleaner feature

This commit is contained in:
Andrew Kaster 2024-02-05 04:28:11 -07:00 committed by Andrew Kaster
parent e6762e8d4d
commit 713698d2ca
3 changed files with 15 additions and 0 deletions

View file

@ -6,6 +6,10 @@ The following `.clangd` should be placed in the project root:
CompileFlags:
CompilationDatabase: Build/x86_64 # Or whatever architecture you're targeting, e.g. aarch64
Add: [-D__serenity__]
Diagnostics:
UnusedIncludes: None
MissingIncludes: None
```
You also need to configure the clangd server to detect headers properly from the Serenity toolchain. To do this, create a `.helix/languages.toml` file in the project root: