DoxyPress
1.7.0
|
DoxyPress offers an alternative from the traditional lex only parsing of source files for a few computer languages. Lex uses hand written rules which need to be updated as new syntax is added to the languages.
Some documenting programs which say they use clang, only invoke the clang front end under a very limited set of conditions. A small portion of the documented source code is passed to clang and most of the clang parsing is never used. This approach is not really using the full capabilities of clang and should not be thought of as actually parsing with clang.
DoxyPress provides a mechanism for parsing your source code using the clang front end exclusively. When the clang parsing option in your DoxyPress project file is enabled all C, C++, and Objective-C source code will be processed using clang. This approach may be slower however it relies on the properties of clang for parsing so it may be more accurate. DoxyPress is one of the very programs to use the clang front end for generating source documentation.
DoxyPress currently uses clang 10 for the clang front end. This version of clang provides full support through C++20. Support for various features can be enabled or disabled using the language dialect tag.
There are several tags which must be set in your project file to enable and use clang for parsing. These tags are located on the Build Settings
tab under Clang Parsing
.
Values for this tag are entered using the same syntax supported by the clang command line. If you are using a compilation database these flags should not be required.
On some platforms it may be necessary to indicate the path where your C++ standard library headers are located if clang fails to find the system headers.
Windows
OS X