Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Document the behaviour of getCompilationDBParams when a file is not f…

…ound in the compilation database
  • Loading branch information...
commit e88527cd7a96bc79aa50a44e8a44e6332dc84871 1 parent d310036
@Arnaud-de-Grandmaison Arnaud-de-Grandmaison authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 doc/clang_complete.txt
5 doc/clang_complete.txt
@@ -182,7 +182,10 @@ Set sources for user options passed to clang. Available sources are:
output this information. clang_complete will search upwards from where vi
was started for a database named 'compile_commands.json'.
Note : compilation databases can only be used when 'g:clang_use_library'
- equals 1 and the clang libraries are recent enough (clang>=3.2).
+ equals 1 and the clang libraries are recent enough (clang>=3.2). The
+ compilation database only contains information for the C/C++ sources files,
+ so when editing a header, clang_complete will reuse the compilation
+ arguments from the last file found in the database.
- {anything} else will be treaded as a custom option source in the following
manner: clang_complete will try to load the autoload-function named
getopts#{anything}#getopts, which then will be able to modify
Please sign in to comment.
Something went wrong with that request. Please try again.