From f185b4ef126ce6ee71a381eb8338da3289ccfc42 Mon Sep 17 00:00:00 2001 From: micbou Date: Tue, 5 Sep 2017 14:17:39 +0200 Subject: [PATCH] Update ClearCompilationFlagCache docs --- README.md | 9 +++++---- doc/youcompleteme.txt | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d92befec..8be153b3 100644 --- a/README.md +++ b/README.md @@ -1605,12 +1605,13 @@ Supported in filetypes: `cs, go, javascript, python, rust, typescript` #### The `ClearCompilationFlagCache` subcommand 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 -`True`. The cache is in memory and is never invalidated (unless you restart Vim -of course). +`ycm_extra_conf.py` file unless you return them with the `do_cache` parameter +set to `False`. It also caches the flags extracted from the compilation +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 -`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` diff --git a/doc/youcompleteme.txt b/doc/youcompleteme.txt index e875b09a..93672ecf 100644 --- a/doc/youcompleteme.txt +++ b/doc/youcompleteme.txt @@ -1896,12 +1896,13 @@ Supported in filetypes: 'cs, go, javascript, python, rust, typescript' The *ClearCompilationFlagCache* subcommand 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 'True'. The cache is in memory and is never invalidated (unless you restart -Vim of course). +'ycm_extra_conf.py' file unless you return them with the 'do_cache' parameter +set to 'False'. It also caches the flags extracted from the compilation +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 -'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'