mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-21 08:03:02 +00:00
empty cacheDirectory
parent
c1fa202120
commit
1585432eb1
@ -8,6 +8,8 @@ Each language client has its own way to specify initialization options. ccls sup
|
|||||||
|
|
||||||
It points to a directory (relative or absolute) storing indexing files so that next time ccls can load these indexing results without full indexing.
|
It points to a directory (relative or absolute) storing indexing files so that next time ccls can load these indexing results without full indexing.
|
||||||
|
|
||||||
|
If empty, cache will be stored in memory.
|
||||||
|
|
||||||
## `clang.extraArgs` `clang.excludeArgs`
|
## `clang.extraArgs` `clang.excludeArgs`
|
||||||
|
|
||||||
Additional arguments or excluded arguments for `compile_commands.json` entries.
|
Additional arguments or excluded arguments for `compile_commands.json` entries.
|
||||||
@ -56,7 +58,15 @@ You usually want to use `index.multiVersionBlacklist` to exclude system headers.
|
|||||||
It is `false` by default which means to re-index when a document is saved.
|
It is `false` by default which means to re-index when a document is saved.
|
||||||
Set it to `true` to re-index for every change to a document.
|
Set it to `true` to re-index for every change to a document.
|
||||||
|
|
||||||
The performance will suffer a lot.
|
The performance may suffer a lot.
|
||||||
|
|
||||||
|
This is best used in conjunction with empty empty `cacheDirectory` to avoid writing cache files:
|
||||||
|
```javascript
|
||||||
|
{
|
||||||
|
"cacheDirectory": "",
|
||||||
|
"index": {"onChange": true}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## `cacheFormat`: serialization format of cache files
|
## `cacheFormat`: serialization format of cache files
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user