randomphrase / company-c-headers

Auto-completion for C/C++ headers using Company
GNU General Public License v2.0
76 stars 9 forks source link

How do I add the headers other projects? #3

Closed silgon closed 10 years ago

silgon commented 10 years ago

I think that for the headers you're using the answer of gcc -xc++ -E -v - I'm not sure though. But I would like to ask how to add more. The important part of result of that command for me is:

#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/4.6
 /usr/include/c++/4.6/x86_64-linux-gnu/.
 /usr/include/c++/4.6/backward
 /usr/lib/gcc/x86_64-linux-gnu/4.6/include
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.

And would like to add some others, how can I do that?

randomphrase commented 10 years ago

Well as described in the readme, you could just customize the company-c-headers-path-system variable to include all of the paths you're interested in.

There are more advanced solutions but this should get you going for now.