Skip to content

slow code completion when #include <boost/algorithm/string.hpp> #583

@ahmednofal

Description

@ahmednofal

Hello, thank you for ur amazing work.

I wanted to ask you if it is something related to clang_complete or is it my libclang version

I am using this option in my .vimrc:

let g:clang_library_path='/usr/lib/llvm-3.8/lib/libclang.so.1'
let g:clang_use_library = 1
let g:clang_complete_auto = 0

Whenever I hit it jumps through the entirety of boost libraries trying to complete. I am guessing because it is jumping through all of the includes in the string.hpp file in boost library.

Also this happens everytime, so it is also not caching the results although I tried

let g:clang_library_path='/usr/lib/llvm-3.8/lib/'

with same results. I have went through some of the pre-open issues and found some of them suggesting that the cached results are not there because the rest of libclang so files are not in same directory as libclang.so.1

but stil pointing to the directory and not the file itself does not work and blurts out an error that it can not find the clang library file.

I think just forcing clang_complete through .clang_complete to certain directories might be best.

Is it possible to force clang_complete not to go through the #includes ?

I used this https://stackoverflow.com/questions/10541411/how-to-reduce-the-time-of-clang-complete-search-through-boost

but this hardly is a fix. hoping someone can jump in. "

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions