possible to share work when parsing multiple files with libclang?
问题 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