[cfe-dev] libclang plugin support

Kevin Funk via cfe-dev cfe-dev at lists.llvm.org
Wed Aug 24 06:38:49 PDT 2016


On Wednesday, 24 August 2016 13:49:15 CEST Stefan Kemnitz via cfe-dev wrote:
> Hello
> 
> I am working on a plugin for clang and libclang and I am having problems
> with libclangs exported symbols.
> 
> The state right now of this is that D5611 and D15729 are somehow stuck.
> After I did not respond fast enough, kfunk continued with D15729 which in
> the end was accepted.

Note that this patch is still not pushed though, because of the problems we 
were facing with exported symbols in some configurations.

Haven't had time to look into it again.

I'd also love to hear some opinions about this matter from LLVM/Clang 
developers.

Cheers,
Kevin

> But there is one thing that is still not fixed.
> This just works in debug mode since libclang exports all symbols in debug
> mode.
> In release mode the symbols that have to be exported change all the time
> and providing a list of symbols to export is not an option.
> I saw that others are trying to load plugins with libclang ( clang-tidy ) [[
> http://clang-developers.42468.n3.nabble.com/Loading-plugins-into-libclang-t
> d4050234.html ]]
> It seems that dynamic loading still does not work like it should.
> 
> In my project I am putting these symbols into the libclang.exports file
> manually.
> This way i am able to load any plugin.
> My plugin is made to show polyhedral optimization results from pet and
> pluto in vim but it's also
> possible to show clang-tidy output.
> It's not limited to vim ( via YouCompleteMe ) the same thing works for
> kdevelop or any other IDE that uses
> libclang to parse code.
> 
> If this was already solved and i am not able to see it please tell me.
> Right now I am building libclang from git ( clang 4.0 ) and it still seems
> to have this problem.
> 
> Can someone help me with this ?


-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160824/ccf5dfd5/attachment.sig>


More information about the cfe-dev mailing list