diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-03-30 19:53:04 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-03-30 19:53:04 (GMT) |
commit | 535ddc3bb7b6a6d4b50855a06838c11b84a9f3fd (patch) | |
tree | dcb3e2354df7b19ebd9458aca416a61d4922bc5c /src/doxygen.cpp | |
parent | 5eeee0ed4c1692c9a367a1232b74e44f1c4a460a (diff) | |
download | Doxygen-535ddc3bb7b6a6d4b50855a06838c11b84a9f3fd.zip Doxygen-535ddc3bb7b6a6d4b50855a06838c11b84a9f3fd.tar.gz Doxygen-535ddc3bb7b6a6d4b50855a06838c11b84a9f3fd.tar.bz2 |
Release-1.3-rc3-20030330
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 38 |
1 files changed, 8 insertions, 30 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index c72fe21..15dc65e 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -2939,9 +2939,11 @@ static void findUsedClassesForClass(Entry *root, //printf("findUsedClassesForClass(%s)=%s\n",masterCd->name().data(),type.data()); while (!found && extractClassNameFromType(type,pos,usedClassName,templSpec)) { + //printf("Found used class %s\n",usedClassName.data()); // the name could be a type definition, resolve it // TODO: recursive typedef resolution QCString typeName = resolveTypeDef(masterCd,usedClassName); + //printf("Found resolved class %s\n",typeName.data()); // add any template arguments to the class QCString usedName = usedClassName+templSpec; @@ -2993,34 +2995,10 @@ static void findUsedClassesForClass(Entry *root, if (!found) { - ClassDef *usedCd=0; -#if 0 - Definition *scope=masterCd->getOuterScope(); - do - { - // TODO: also consider using declarations and directives - // as done for inheritance relations. - - QCString scopeName; - if (scope) scopeName=scope->qualifiedName(); - if (!scopeName.isEmpty()) - { - usedCd=getResolvedClass(masterCd,scopeName+"::"+usedName,0,&templSpec); - if (usedCd==0) usedCd=getResolvedClass(masterCd,scopeName+"::"+usedClassName,0,&templSpec); - //printf("Search for class %s result=%p\n",(scopeName+"::"+usedName).data(),usedCd); - } - else - { - usedCd=getResolvedClass(masterCd,usedName,0,&templSpec); - if (usedCd==0) usedCd=getResolvedClass(masterCd,usedClassName,0,&templSpec); - //printf("Search for class %s result=%p\n",usedName.data(),usedCd); - } - if (scope) scope=scope->getOuterScope(); - } while (scope && usedCd==0); -#endif - usedCd = findClassWithinClassContext(masterCd,usedName); + ClassDef *usedCd=findClassWithinClassContext(masterCd,usedName); + //printf("Looking for used class: result=%p master=%p\n",usedCd,masterCd); - if (usedCd && usedCd!=masterCd) + if (usedCd /*&& usedCd!=masterCd*/) { found=TRUE; Debug::print(Debug::Classes,0," Adding used class `%s'\n", usedCd->name().data()); @@ -6109,7 +6087,7 @@ static void findMainPage(Entry *root) indexName, root->doc,title); //setFileNameForSections(root->anchors,"index",Doxygen::mainPage); Doxygen::mainPage->fileName = indexName; - Doxygen::mainPage->addSections(root->anchors); + //Doxygen::mainPage->addSections(root->anchors); // a page name is a label as well! SectionInfo *si=new SectionInfo( @@ -6253,7 +6231,7 @@ static void generatePageDocs() { scName=pi->context->name(); } - outputList->parseDoc(pi->defFileName,pi->defLine,scName,0,pi->doc,FALSE); + outputList->parseDoc(pi->defFileName,pi->defLine,scName,0,pi->doc,FALSE,pi->sectionDict); outputList->endTextBlock(); endFile(*outputList); //outputList->enable(OutputGenerator::Man); @@ -6293,7 +6271,7 @@ static void buildExampleList(Entry *root) PageInfo *pi=new PageInfo(root->fileName,root->startLine, root->name,root->doc,root->args); pi->fileName = convertNameToFile(pi->name+"-example"); - pi->addSections(root->anchors); + //pi->addSections(root->anchors); Doxygen::exampleSDict->inSort(root->name,pi); addExampleToGroups(root,pi); |