Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,23 @@ flag parsing (clang vs clang-cl), target inference (gcc-arm-noneabi) etc.
If the option matches a glob mentioned in `--query-driver`, then it'll be
invoked for extraction of include paths.

### BuiltinHeaders
{:.v21}

Controls whether Clangd should includes its own built-in headers (like stddef.h), or use the system header found from the query driver.

Valid values are:
- `Clangd`: Use builtin headers from `clangd`.
- `QueryDriver`: Use the headers extracted from the compiler via the
`--query-driver` command line argument. If a query driver is not supplied or
does not match the compiler, then the `Clangd` builtin headers will be the
fallback.

```yaml
CompileFlags:
BuiltinHeaders: QueryDriver
```

## Index

Controls how clangd understands code outside the current file.
Expand Down