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

Accessing .h information for completion? #397

Open
Goles opened this issue Apr 23, 2014 · 4 comments
Open

Accessing .h information for completion? #397

Goles opened this issue Apr 23, 2014 · 4 comments

Comments

@Goles
Copy link

Goles commented Apr 23, 2014

Hello,

As far as I know there's no recursive way to add all my project .h files to make clang_complete use them for completion... so right now my .clang_complete file is full of:

-I ./External
-I ./External/Other
-I ./External/Other/Another

Is there a way to make clang_complete to automatically detect my .h files and take them into account for completion?

@tobiasgrosser
Copy link
Collaborator

On 23/04/2014 19:48, Nicolas Goles wrote:

Hello,

As far as I know there's no recursive way to add all my project .h files to make clang_complete use them for completion... so right now my .clang_complete file is full of:

-I ./External
-I ./External/Other
-I ./External/Other/Another

Is there a way to make clang_complete to automatically detect my .h files and take them into account for completion?

You could use a compilation database as it can e.g. be emitted by cmake
builds.

Tobias

@Goles
Copy link
Author

Goles commented Apr 23, 2014

Hey there, how could I make this? (sorry never used a Compilation Database before)

I'm using clang_complete with Objective-C so I mostly rely on my IDE for compiling.

@tobiasgrosser
Copy link
Collaborator

On 23/04/2014 20:16, Nicolas Goles wrote:

Hey there, how could I make this? (sorry never used a Compilation Database before)

I'm using clang_complete with Objective-C so I mostly rely on my IDE for compiling.

http://clang.llvm.org/docs/JSONCompilationDatabase.html

Specifically, https://github.com/rizsotto/Bear may be helpful.

Tobias

@Goles
Copy link
Author

Goles commented Apr 23, 2014

Will check it out, thanks.

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