[cfe-dev] Status/Future of libclang

David Come via cfe-dev cfe-dev at lists.llvm.org
Fri Jul 8 13:38:36 PDT 2016


 

Just go for the C++ API : libtooling 

You will have all you need. 

David. 

Le 2016-07-08 21:10, Jonathan Müller via cfe-dev a écrit : 

> Hello,
> 
> I'm working on a C++ documentation generator "standardese" (https://github.com/foonathan/standardese/). I'm using libclang for parsing.
> 
> Unfortunately I've run into an issue with it: the API isn't providing me all the information that I need. There are things that aren't exposed by the API, for example whether a constructor is explicit, a function constexpr, or the noexcept expression.
> 
> I was forced to go to manual parsing of the source code of a cursor by tokenizing it with the help of Boost.Wave (because libclang doesn't give me the preprocessed tokens). This worked relatively good but I now ran into an issue with template specializations (parsing `template <> class c<a < b> {};), so my naive approach doesn't work anymore and I'd need to write a fully fledged parser.
> 
> I've also encountered a few things that might be bugs.
> I can report those, but when looking at https://llvm.org/bugs/buglist.cgi?product=clang&component=libclang&resolution=---&list_id=100919, there are almost only unassigned, NEW bugs.
> 
> I would volunteer to maintain it myself but I have no experience with the internal APIs or the clang project and I'm lacking the time to learn them *and* work on standardese.
> 
> So my question: Is there someone actively maintaining libclang? What are the future plans for the API?
> If there is someone I'll provide active feedback and feature requests.
> 
> Jonathan
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

-- 

David Come 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160708/b6991b97/attachment.html>


More information about the cfe-dev mailing list