Skip to content
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

Adding user path in addition to system paths #9

Closed
jwintz opened this issue Nov 20, 2015 · 3 comments
Closed

Adding user path in addition to system paths #9

jwintz opened this issue Nov 20, 2015 · 3 comments

Comments

@jwintz
Copy link

jwintz commented Nov 20, 2015

Hello,

Is it possible as in company-c-headers to add user directories for the completion ?

(add-to-list 'company-irony-c-headers-user-path '"/home/...")
(add-to-list 'company-irony-c-headers-user-path '"/home/...")
(add-to-list 'company-irony-c-headers-user-path '"/home/...")

Thanks !

@hotpxl
Copy link
Owner

hotpxl commented Nov 22, 2015

You are supposed to this in Irony. I would place a .clang_complete file in the root dir of the project and add -Ipath0, -Ipath1 and so on. You could also share info with Irony in this way.

@jwintz
Copy link
Author

jwintz commented Nov 22, 2015

You are right. I figured this out by using compilation databases for irony using a cmake based project, and got my c headers completion directly. This means company-irony-headers works out the box.

My question however remains. I have filled an issue to irony-mode to ask for user search path specified directly when configuring irony-mode in emas-lisp.

Thanks !

@jwintz jwintz closed this as completed Nov 22, 2015
@hotpxl
Copy link
Owner

hotpxl commented Nov 22, 2015

If you are using cmake and INCLUDE_DIRECTORIES, it should already be in the compilation database. I'm not sure if it's working properly since i've only used the .clang_complete way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants