synchronized with clang_complete