f88c9feb4f
This change should fix the random hangs and segfaults when using the clang completer. Also, assertion errors printed to the console on vim exit should go away too, same thing with segfaults on vim exit. These "on exit" errors were caused by not cleanly shutting down the background threads; both the identifier completer and the clang one now join the threads on destruction. This results in a clean shutdown. The new clang completer architecture now uses only one clang thread (again) instead of a completion and parsing thread. Since the parsing task needs to wait on the completion task if it was started first (and vice-versa) there's no point to using two threads. The desired "simplicity" of using two threads for these two tasks actually created needless complexity (and bugs). Sigh. Such is life. A TranslationUnit abstraction was also created and this in turn also reduces the complexity of the clang completer. The clang completer now also has some (very) basic tests. |
||
---|---|---|
.. | ||
tests | ||
.ycm_clang_options.py | ||
Candidate.cpp | ||
Candidate.h | ||
CandidateRepository.cpp | ||
CandidateRepository.h | ||
ClangCompleter.cpp | ||
ClangCompleter.h | ||
ClangUtils.cpp | ||
ClangUtils.h | ||
CMakeLists.txt | ||
CompletionData.cpp | ||
CompletionData.h | ||
ConcurrentLatestValue.h | ||
ConcurrentStack.h | ||
CustomAssert.cpp | ||
CustomAssert.h | ||
Diagnostic.h | ||
Future.h | ||
IdentifierCompleter.cpp | ||
IdentifierCompleter.h | ||
IdentifierUtils.cpp | ||
IdentifierUtils.h | ||
LetterHash.cpp | ||
LetterHash.h | ||
LetterNode.cpp | ||
LetterNode.h | ||
Result.cpp | ||
Result.h | ||
standard.h | ||
TranslationUnit.cpp | ||
TranslationUnit.h | ||
UnsavedFile.h | ||
Utils.cpp | ||
Utils.h | ||
ycm_core.cpp |