diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-06-07 11:47:47 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-06-07 11:47:47 (GMT) |
commit | 0aa47e2a30513b04d1041d528f468d3434a81558 (patch) | |
tree | f17d17b67fdefdfdf992328f3f51dd90812c156e /src/memberdef.cpp | |
parent | 35c2baedaa68519999af733a87d8e6ff9a89358c (diff) | |
download | Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.zip Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.tar.gz Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.tar.bz2 |
Release-1.3.1-20030607
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index f5ddf13..ffda3bd 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -31,6 +31,7 @@ #include "groupdef.h" #include "defargs.h" #include "docparser.h" +#include "dot.h" //#include "xml.h" @@ -282,6 +283,7 @@ MemberDef::MemberDef(const char *df,int dl, //scopeTAL=0; //membTAL=0; m_defTmpArgLists=0; + m_hasCallGraph = FALSE; initLines=0; type=t; if (mt==Typedef && type.left(8)=="typedef ") type=type.mid(8); @@ -1568,7 +1570,24 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol, //if (Config_getBool("EXTRACT_ALL") && !hasDocs) ol.enable(OutputGenerator::Latex); ol.popGeneratorState(); + if ((m_hasCallGraph || Config_getBool("CALL_GRAPH")) + && isFunction() && Config_getBool("HAVE_DOT") + ) + { + DotCallGraph callGraph(this,Config_getInt("MAX_DOT_GRAPH_DEPTH")); + if (!callGraph.isTrivial()) + { + msg("Generating call graph for function %s\n",qualifiedName().data()); + ol.disable(OutputGenerator::Man); + ol.newParagraph(); + ol.startCallGraph(); + //ol.parseText(theTranslator->trCallGraph()); + ol.endCallGraph(callGraph); + ol.enableAll(); + } + } } + } void MemberDef::warnIfUndocumented() @@ -1992,3 +2011,9 @@ void MemberDef::findSectionsInDocumentation() docFindSections(documentation(),this,0,docFile()); } +void MemberDef::enableCallGraph(bool e) +{ + m_hasCallGraph=e; + if (e) Doxygen::parseSourcesNeeded = TRUE; +} + |