Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Source code graphs with doxygen
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Timothy Rice  
View profile  
 More options Jul 25 2012, 11:58 pm
From: Timothy Rice <t.r...@ms.unimelb.edu.au>
Date: Thu, 26 Jul 2012 13:58:29 +1000
Local: Wed, Jul 25 2012 11:58 pm
Subject: Source code graphs with doxygen

G'day,

Some people expressed interest in the graphs I used last night. I thought
I'd give a quick overview of how to make them. They're generated by
Doxygen, which is also capable of generating other kinds of documentation
such as manpages. You should be able to install Doxygen using your package
manager.

To generate documentation, you always have a config file, by default called
"Doxyfile". Then in the directory where your source code lives, run the
command,

    doxygen Doxyfile

If you don't have a config file, doxygen will generate one with:

    doxygen -g

The default Doxyfile doesn't trigger graph generation. For that, you need
to change some of the fields. Specifically, look for the following fields
in the Doxyfile and set their values accordingly:

    EXTRACT_ALL = YES
    HAVE_DOT = YES
    CALL_GRAPH = YES

The following might slow down doxygen for large projects but it is useful:

    CALLER_GRAPH = YES

YMMV, but I also think it's often good to have the following set:

    BUILTIN_STL_SUPPORT = YES
    INLINE_SOURCES = YES

In summary,

    1. Install doxygen.
    2. Go to the directory containing your source code.
    3. Run: doxygen -g
    4. Edit the resulting Doxyfile, especially EXTRACT_ALL, HAVE_DOT and
        CALL_GRAPH.
    5. Run: doxygen Doxyfile
    6. You should now find a subdirectory called "html". Inside will be a
        file called "index.html"; open it in your preferred (graphical)
        browser (not lynx or other console-based browsers).

I hope someone finds this useful :-).

Cheers,

Tim
--
PhD Candidate, NICTA
Melbourne University
E: t.r...@ms.unimelb.edu.au
W: http://www.ms.unimelb.edu.au/~trice

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »