Closed alexpyzhianov closed 7 years ago
Quick update. Still not resolved, deoplete-clang
picks my compile_commands.json
but is very slow. My clang is 4.0.0
maybe major version has something to do with it
This may be related to #14. If you don't think it is, I'm fairly clueless when it comes to C++, unfortunately.
Actually I think I see the issue, but I don't really have any means to confirm it. Could you try adding this:
elif context.get('filetype', '') == 'cpp':
pat += r'::'
below this line: https://github.com/tweekmonster/deoplete-clang2/blob/ae4552b18439cfda1e4bf82a5347484c640aa870/rplugin/python3/deoplete/sources/deoplete_clang2.py#L170
if objc:
pat += r'|[:@\[]|(?:\S\s+)'
elif context.get('filetype', '') == 'cpp':
pat += r'::'
Like this? Nope, nothing changed
Sorry, the pattern is wrong. It should be pat += r'|::'
Wow! It works now! Thanks a lot!
Great! I'll fix this shortly.
Hey! I'm just starting out with C++ and making a small project with
libcinder
. I build it with cmake configuration that Cinder provides. Everything works fine but I can't make auto completion work.What's interesting is that when I type
#include "(...)
a dropdown shows me a bunch of vaild options, including Cinder libs like:But when I try to see stuff in the included namespace typing something like
gl::(...)
... Nothing. I see only suggestions from buffer source.My
./compile_commands.json
looks like this:After running
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1
my project folder looks like this:Any help would be much appreciated. Thank you!