libClang use

Discuss anything related to product development
Post Reply
vivekvpandya
Posts: 1
Joined: Wed Dec 30 2015 9:55 am

libClang use

Post by vivekvpandya »

Has DoxyPress started using libClang ?
ansel
Posts: 150
Joined: Fri Apr 10 2015 8:23 am

Re: libClang use

Post by ansel »

vivekvpandya wrote:Has DoxyPress started using libClang ?
We are in the process of adding libClang as a supported parser for DoxyPress. This turns out to involve a significant redesign of the parsing front end.

Note that while Doxygen has a "use libclang" option it does not use libClang for all parsing. Rather, it uses libClang for parsing code fragments that are deemed "too complex" for the hand-written C/C++ parser. This is not an approach that we feel will be maintainable in the long term, and we are moving to an architecture which will use libClang exclusively for parsing C/C+++ to get the benefit of a fully compliant parser that is well maintained.

If you have any thoughts about using libClang we are very interested in hearing your point of view. Contributions in terms of architecture, design, code, and testing are always most welcome.
Ansel Sermersheim
CopperSpice Cofounder
marlowa
Posts: 117
Joined: Sun Oct 25 2015 10:52 am

Re: libClang use

Post by marlowa »

ansel wrote:
vivekvpandya wrote:Has DoxyPress started using libClang ?
We are in the process of adding libClang as a supported parser for DoxyPress. This turns out to involve a significant redesign of the parsing front end.[snip]
If you have any thoughts about using libClang we are very interested in hearing your point of view. Contributions in terms of architecture, design, code, and testing are always most welcome.
This sounds like a good idea to me. You may be interested in this talk by Dietmar Kuhl about using clang in this way: http://www.infoq.com/presentations/c-clang-tool
Post Reply