libclang

possible to share work when parsing multiple files with libclang?

▼魔方 西西 提交于 2019-11-30 23:41:52
If I have multiple files in a large project, all of which share a large number of included header files, is there any way to share the work of parsing the header files? I had hoped that creating one Index and then adding multiple translationUnits to it could cause some work to be shared - however even code along the lines of (pseudocode) index = clang_createIndex(); clang_parseTranslationUnit(index, "myfile"); clang_parseTranslationUnit(index, "myfile"); seems to take the full amount of time for each call to parseTranslationUnit, performing no better than index1 = clang_createIndex(); clang

C-family Semantic Autocompletion Plugins for Vim (C/C++ completion) using Clang (clang_complete, YouCompleteMe)

℡╲_俬逩灬. 提交于 2019-11-28 16:52:04
问题 I am using 64-bit Vim on windows, this version by Haroogan: +python27 +python33 +huge I am trying to use clang_complete, so I took the libclang.dll library here and I set up my vimrc correctly. libclang.dll is found. However when I open a *.cpp file I now have a message: libclang cannot find the builtin includes this will cause slow completion code but I have no completion at all... I found this post with the guy who build the version of Vim that I use, but there is no clear instruction about