Update ClearCompilationFlagCache docs

This commit is contained in:
micbou 2017-09-05 14:17:39 +02:00
parent 9a76fd2e9a
commit f185b4ef12
No known key found for this signature in database
GPG Key ID: C7E8FD1F3BDA1E05
2 changed files with 10 additions and 8 deletions

View File

@ -1605,12 +1605,13 @@ Supported in filetypes: `cs, go, javascript, python, rust, typescript`
#### The `ClearCompilationFlagCache` subcommand #### The `ClearCompilationFlagCache` subcommand
YCM caches the flags it gets from the `FlagsForFile` function in your YCM caches the flags it gets from the `FlagsForFile` function in your
`ycm_extra_conf.py` file if you return them with the `do_cache` parameter set to `ycm_extra_conf.py` file unless you return them with the `do_cache` parameter
`True`. The cache is in memory and is never invalidated (unless you restart Vim set to `False`. It also caches the flags extracted from the compilation
of course). database. The cache is in memory and is never invalidated (unless you restart
the server with the `:YcmRestartServer` command).
This command clears that cache entirely. YCM will then re-query your This command clears that cache entirely. YCM will then re-query your
`FlagsForFile` function as needed in the future. `FlagsForFile` function or your compilation database as needed in the future.
Supported in filetypes: `c, cpp, objc, objcpp` Supported in filetypes: `c, cpp, objc, objcpp`

View File

@ -1896,12 +1896,13 @@ Supported in filetypes: 'cs, go, javascript, python, rust, typescript'
The *ClearCompilationFlagCache* subcommand The *ClearCompilationFlagCache* subcommand
YCM caches the flags it gets from the 'FlagsForFile' function in your YCM caches the flags it gets from the 'FlagsForFile' function in your
'ycm_extra_conf.py' file if you return them with the 'do_cache' parameter set 'ycm_extra_conf.py' file unless you return them with the 'do_cache' parameter
to 'True'. The cache is in memory and is never invalidated (unless you restart set to 'False'. It also caches the flags extracted from the compilation
Vim of course). database. The cache is in memory and is never invalidated (unless you restart
the server with the |:YcmRestartServer| command).
This command clears that cache entirely. YCM will then re-query your This command clears that cache entirely. YCM will then re-query your
'FlagsForFile' function as needed in the future. 'FlagsForFile' function or your compilation database as needed in the future.
Supported in filetypes: 'c, cpp, objc, objcpp' Supported in filetypes: 'c, cpp, objc, objcpp'