Ensure we do not give out a reference to the internal argument cache of the compilation database. Instead explicitly copy the internal cache. The problem with just giving out a reference is that later passes may modify the argument list. This does not only add unrelated content to the internal cache, but it also may lead to random crashes in case we use the argument list from different threads.
…errors." This reverts commit 76975ae.
…g_complete into builtin-dirs
…ound in the compilation database
…ile is not found This is a very common case : it happens for all headers. In practice, this heuristics gives good results.
This is easier to read, and may be a bit faster.