From ef859cbf50b26457caee9bad26ed293951e70ce1 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 7 Jun 2019 12:29:34 +0200 Subject: Consistency not generated inheritance diagram Also warn when an inheritance diagram is not generated. Corrected "dead" code in if statement --- src/classdef.cpp | 6 +++++- src/memberdef.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/classdef.cpp b/src/classdef.cpp index 8f04505..f7abbe4 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -1718,7 +1718,11 @@ void ClassDefImpl::writeInheritanceGraph(OutputList &ol) const // write class diagram using dot { DotClassGraph inheritanceGraph(this,DotNode::Inheritance); - if (!inheritanceGraph.isTrivial() && !inheritanceGraph.isTooBig()) + if (inheritanceGraph.isTooBig()) + { + warn_uncond("Inheritance graph for '%s' not generated, too many nodes. Consider increasing DOT_GRAPH_MAX_NODES.\n",name().data()); + } + else if (!inheritanceGraph.isTrivial()) { ol.pushGeneratorState(); ol.disable(OutputGenerator::Man); diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 3442229..912d7b2 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -2945,7 +2945,7 @@ void MemberDefImpl::_writeCallerGraph(OutputList &ol) const { warn_uncond("Caller graph for '%s' not generated, too many nodes. Consider increasing DOT_GRAPH_MAX_NODES.\n",qPrint(qualifiedName())); } - else if (!callerGraph.isTrivial() && !callerGraph.isTooBig()) + else if (!callerGraph.isTrivial()) { msg("Generating caller graph for function %s\n",qPrint(qualifiedName())); ol.disable(OutputGenerator::Man); -- cgit v0.12