randomphrase / company-c-headers

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

Cannot complete C++ headers like in the screenshot #1

Closed tuhdo closed 10 years ago

tuhdo commented 10 years ago

I could not get company-c-headers to complete C++ headers. Probably you added the include path to C++ headers, which is /usr/c++/4.8 (or other version?

randomphrase commented 10 years ago

There is no easy way to get the path to c++ headers. By design I have chosen to defer this task to other packages.

In the screenshot I have bound company-c-headers-path-system to the function ede-object-system-include-path, which is provided by the ede-compdb package. This package can provide the full include paths from a compilation database, including paths to the standard library headers provided by the compiler.

tuhdo commented 10 years ago

Alright, at least I know that there's nothing wrong with my installation. Thanks.

randomphrase commented 10 years ago

Great, thanks for trying it out.