Better implementation for clang-autocomplete