I had the same problem for my C global functions. You will also view png images of the call graphs embedded in the html that are relevant (to some functions/classes for example). Go to the html folder and open annotated.html to view all details of your project. This will generate two more folders named as html and latex. Save the file and then run this command in the terminal: doxygen Doxyfile You can also set name of your project in this Doxyfile. Go ahead and open up this file in any editor and find these parameters and replace their values to YES at their locations: HAVE_DOT = YES Go to your project folder, and from Terminal set to this path runĪ doxygen file will be generated, named as Doxyfile. Graphviz is an open-source, cross-platform graph drawing toolkit and can be found at Doxygen has built-in support to generate inheritance diagrams for C++ classes.ĭoxygen can use the "dot" tool from graphviz to generate more advanced diagrams and graphs.Install Doxygen and Graphviz as: brew install doxygen If you have the "dot" tool in the path, you can set HAVE_DOT to YES in the configuration file to let doxygen use it.ĭoxygen uses the "dot" tool to generate the following graphs:Ī graphical representation of the class hierarchy will be drawn, along with the textual one. Currently this feature is supported for HTML only. Warning: When you have a very large class hierarchy where many classes derive from a common base class, the resulting image may become too big to handle for some browsers.Īn inheritance graph will be generated for each documented class showing the direct and indirect inheritance relations. This feature is currently supported for HTML and RTF only.Īn inverse include dependency graph is also generated showing for a (header) file, which other files include it.Ī graph is drawn for each documented class and struct that shows: This disables the generation of the built-in class inheritance diagrams.Īn include dependency graph is generated for each documented file that includes at least one other file. The inheritance relations with base classes. The usage relations with other structs and classes (e.g. class A has a member variable m_a of type class B, then A has an arrow to B with m_a as label). If CALL_GRAPH is set to YES, a graphical call graph is drawn for each function showing the functions that the function directly or indirectly calls (see also section \callgraph and section \hidecallgraph). If CALLER_GRAPH is set to YES, a graphical caller graph is drawn for each function showing the functions that the function is directly or indirectly called by (see also section \callergraph and section \hidecallergraph). If DIRECTORY_GRAPH is set to YES, doxygen will generate graphs that show the directory dependencies for every directory. The graph will show directories as boxes. Subdirectories are shown nested into the box of its parent directory. The depth of the graph is configured through DIR_GRAPH_MAX_DEPTH. Include dependencies between the directories are shown as arrows. Using a layout file you can determine which of the graphs are actually shown. The options DOT_GRAPH_MAX_NODES and MAX_DOT_GRAPH_DEPTH can be used to limit the size of the various graphs. The elements in the class diagrams in HTML and RTF have the following meaning:Ī yellow box indicates a class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |