Tomasz Kaczkowski
Tomasz Kaczkowski
Oh. I just wanted you to describe in more details what you would like to be added...
Hmm not sure how this works performance wise but removing TU.PARSE_CACHE_COMPLETION_RESULTS flag from initial parsing does the job.
Yeah, libclang is buggy. As @ooJerryLeeoo mentioned removing caching breaks macros :D
Maybe it's fixed in libclang4? :) I'll try to dig deeeeeeeper.
include_macros=True option needs to be added to the tu.codeComplete() call parameter list.
I am making a lot of assumptions below so treat what I say as wild guess :) I don't think that header completion is possible with libclang completion as headers...
Sky is the limit :)
@niosus I was thinking about getting all headers names at plugin startup and holding them in some tree like structure for a fast lookup.
Yeah, people tend to do such a nonsense for some reason :smiley_cat:
We could prep-end trigger with something like [F/V/pV] etc. based on token kind. Please have a look at the screenshot. 