[cfe-dev] Doxygen 1.8.4 uses libclang to improve parsing
Dimitri van Heesch
dimitri at stack.nl
Mon May 20 10:46:23 PDT 2013
Hi David,
On May 20, 2013, at 19:38 , David Röthlisberger <david at rothlis.net> wrote:
> On 20 May 2013, at 18:19, Dimitri van Heesch wrote:
>> I'm pleased to announce that as of version 1.8.4 doxygen can optionally use libclang to
>> provide a more accurate source browsing experience, and better syntax highlighting,
>> cross referencing, and call graphs.
>
>
> Great news! How does it work: How does doxygen get hold of the compiler
> flags that it needs to pass to clang?
>
> (This is the hardest thing I've found with any clang-based tooling.)
>
Doxygen adds -I for all directories that are part of the input.
It detects the language (C++/ObjC/ObjC++) based on file extension and adds the proper -x option.
For other compiler options it relies on the user to pass them via the CLANG_OPTIONS tag, so it
is not perfect.
Doxygen does show the compiler warnings and errors so you can see if some option is still missing.
Regards,
Dimitri
More information about the cfe-dev
mailing list