-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use completions from C header files in C++ projects #312
Comments
Please provide a testcase. |
Go to
Note that the above example already fails for the [Update] [Another Update] [More Updates] Sometimes it works, sometimes not. I'm having Now I've tried adding Also, if I start with a plain, empty file, there is no comletion for keywords like |
Look at #303 for |
@pedrovanzella Thank you! |
closed? how do you got that problem solved plz? |
Add --sysroot and -gcc-toolchain as INCLUDE_FLAGS Hello, I use YCM in a cross compiled project. To compile the project we use '--sysroot' and '-gcc-toolchain' these directories were removed from the compiling commandline and resulted in build fails. Therefore I added those to the INCLUDE_FLAGS. Greetings, Nagua <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/312) <!-- Reviewable:end -->
If I have C++ file, YCM works well for std:: etc. (in general cpp headers), but when I use a header which is basically a C header wrapped in
extern "C"
I don't get any completions.Does this generally not work or am I just missing some configuration?
The text was updated successfully, but these errors were encountered: