summaryrefslogtreecommitdiffstats
path: root/src/vhdldocgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-10-04 20:20:24 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-10-04 20:20:24 (GMT)
commita62d9f8f1c2c97d454ff33bc1a4911d1362d9766 (patch)
tree36e6fdf77248708eaee0f1180b2ea526d1323c18 /src/vhdldocgen.cpp
parent0c8b6ca69f951ce8c94902764cf036d6a79e5102 (diff)
downloadDoxygen-a62d9f8f1c2c97d454ff33bc1a4911d1362d9766.zip
Doxygen-a62d9f8f1c2c97d454ff33bc1a4911d1362d9766.tar.gz
Doxygen-a62d9f8f1c2c97d454ff33bc1a4911d1362d9766.tar.bz2
Release-1.6.1-20091004
Diffstat (limited to 'src/vhdldocgen.cpp')
-rw-r--r--src/vhdldocgen.cpp62
1 files changed, 21 insertions, 41 deletions
diff --git a/src/vhdldocgen.cpp b/src/vhdldocgen.cpp
index 27c2fa7..7abebc0 100644
--- a/src/vhdldocgen.cpp
+++ b/src/vhdldocgen.cpp
@@ -204,52 +204,32 @@ ClassDef *VhdlDocGen::getClass(const char *name)
}
/*!
- * adds components to their entities
+ * adds architectures to their entity
*/
-void VhdlDocGen::computeVhdlComponentRelations(const QDict<EntryNav>& classEntries,FileStorage* g_storage)
+void VhdlDocGen::computeVhdlComponentRelations()
{
ClassSDict::Iterator cli(*Doxygen::classSDict);
- for (cli.toFirst();cli.current();++cli) cli.current()->visited=FALSE;
- QDictIterator<EntryNav> edi(classEntries);
- EntryNav *rootNav;
- for (;(rootNav=edi.current());++edi)
- {
- ClassDef *cd;
- rootNav->loadEntry(g_storage);
- Entry *root = rootNav->entry();
- QCString bName=stripAnonymousNamespaceScope(rootNav->name());
- if ((cd=getClass(bName)))
+ for (cli.toFirst();cli.current();++cli)
+ {
+ cli.current()->visited=FALSE;
+ ClassDef * cd = cli.current();
+ if ((VhdlDocGen::VhdlClasses)cd->protection()==VhdlDocGen::ARCHITECTURECLASS)
{
- QListIterator<BaseInfo> bii(*root->extends);
- BaseInfo *bi=0;
- for (bii.toFirst();(bi=bii.current());++bii)
+ QCString bName=cd->name();
+ int i=bName.find("::");
+ if (i>0)
{
- ClassDef* baseDef=getClass(bi->name);
-
- if (baseDef && baseDef != cd)
- {
- QCString cc=VhdlDocGen::getClassName(cd);
- ClassDef *ccdef=getClass(cc);
- if (ccdef==0) break;
-
- int ii=ccdef->protection();
- int jj=baseDef->protection();
-
- if (ii==VhdlDocGen::ENTITYCLASS && jj==VhdlDocGen::ENTITYCLASS && (ccdef !=baseDef))
- {
- ccdef->insertBaseClass(baseDef,bi->name,Public,Normal,0);
- baseDef->insertSubClass(ccdef,Public,bi->virt,0);
- }
- }
- else
- {
- if (Config_getBool("WARNINGS"))
- warn(rootNav->fileDef()->fileName().data(),root->startLine, "found component without entity: [%s]",bi->name.data());
- }
- }//for
- }//if
- rootNav->releaseEntry();
- }// for
+ QCString entityName=bName.left(i);
+ ClassDef *classEntity=Doxygen::classSDict->find(entityName);
+ // entity for architecutre ?
+ if (classEntity)
+ {
+ classEntity->insertBaseClass(cd,bName,Public,Normal,0);
+ cd->insertSubClass(classEntity,Public,Normal,0);
+ }
+ }
+ }
+ }
} // computeVhdlComponentRelations