diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2008-09-14 19:14:55 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2008-09-14 19:14:55 (GMT) |
commit | 9e34481c1a67ca9ffb6a83f9723f23f6cf3982c7 (patch) | |
tree | 7c2a1d6f7f4f4a314acdd54d620ac8a75519e369 /src/memberlist.cpp | |
parent | 093ac41f561578b904905e466df307131cd80893 (diff) | |
download | Doxygen-9e34481c1a67ca9ffb6a83f9723f23f6cf3982c7.zip Doxygen-9e34481c1a67ca9ffb6a83f9723f23f6cf3982c7.tar.gz Doxygen-9e34481c1a67ca9ffb6a83f9723f23f6cf3982c7.tar.bz2 |
Release-1.5.6-20080914
Diffstat (limited to 'src/memberlist.cpp')
-rw-r--r-- | src/memberlist.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/memberlist.cpp b/src/memberlist.cpp index d6b389b..e2ffedb 100644 --- a/src/memberlist.cpp +++ b/src/memberlist.cpp @@ -26,6 +26,7 @@ #include "outputlist.h" #include "groupdef.h" #include "marshal.h" +#include "vhdldocgen.h" MemberList::MemberList() { @@ -319,6 +320,8 @@ void MemberList::writeDeclarations(OutputList &ol, /*, bool inGroup,bool countSubGroups*/) { //printf("----- writeDeclaration() this=%p ----\n",this); + static bool optimizeVhdl = Config_getBool("OPTIMIZE_OUTPUT_VHDL"); + countDecMembers(showEnumValues); // count member not in group Definition *ctx = cd; if (ctx==0 && nd) ctx = nd; @@ -342,7 +345,21 @@ void MemberList::writeDeclarations(OutputList &ol, ol.endMemberSubtitle(); } - writePlainDeclarations(ol,cd,nd,fd,gd); + // TODO: Two things need to be worked out for proper VHDL output: + // 1. Signals and types under the group need to be + // formatted to associate them with the group somehow + // indentation, or at the very least, extra space after + // the group is done + // 2. This might need to be repeated below for memberGroupLists + if (optimizeVhdl) // use specific declarations function + { + VhdlDocGen::writeVhdlDeclarations(this,ol,0,cd); + } + else + { + writePlainDeclarations(ol,cd,nd,fd,gd); + } + //printf("memberGroupList=%p\n",memberGroupList); if (memberGroupList) |