clang_complete
clang_complete copied to clipboard
Accessing .h information for completion?
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?
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
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.
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
Will check it out, thanks.