diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-24 12:20:58 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-24 12:20:58 (GMT) |
commit | 4a627283263247deccc125d072f23d93057b8a65 (patch) | |
tree | 98d0983ccbf276e948c93cb9379793cad053ea3b /src/doxygen.cpp | |
parent | 259d45b94b83523a508b42e71cac1441f2939ac3 (diff) | |
download | Doxygen-4a627283263247deccc125d072f23d93057b8a65.zip Doxygen-4a627283263247deccc125d072f23d93057b8a65.tar.gz Doxygen-4a627283263247deccc125d072f23d93057b8a65.tar.bz2 |
issue #8274 List entries for file & namespace enums (part 2)
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 54e4915..0f06d8f 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -7252,8 +7252,6 @@ static void findEnumDocumentation(const Entry *root) && root->name.at(0)!='@' // skip anonymous enums ) { - //printf("Found docs for enum with name '%s' in context %s\n", - // root->name.data(),root->parent->name.data()); int i; QCString name; QCString scope; @@ -7277,6 +7275,11 @@ static void findEnumDocumentation(const Entry *root) const ClassDef *cd = getClass(scope); const NamespaceDef *nd=Doxygen::namespaceLinkedMap->find(scope); const FileDef *fd = root->fileDef(); + Debug::print(Debug::FindMembers,0,"1. Found docs for enum with name '%s' and scope '%s' in context %s cd=%s, nd=%s fd=%s\n", + name.data(),scope.data(),root->parent()->name.data(), + cd?cd->name().data():"<none>", + nd?nd->name().data():"<none>", + fd?fd->name().data():"<none>"); if (!name.isEmpty()) { @@ -7302,18 +7305,21 @@ static void findEnumDocumentation(const Entry *root) const FileDef *mfd = md->getFileDef(); if (mcd==cd) { + Debug::print(Debug::FindMembers,0,"2. Match found for class scope\n"); addEnumDocs(root,md); found=TRUE; break; } - else if (mnd==nd) + else if (cd==0 && mcd==0 && nd!=0 && mnd==nd) { + Debug::print(Debug::FindMembers,0,"2. Match found for namespace scope\n"); addEnumDocs(root,md); found=TRUE; break; } else if (cd==0 && nd==0 && mcd==0 && mnd==0 && fd==mfd) { + Debug::print(Debug::FindMembers,0,"2. Match found for global scope\n"); addEnumDocs(root,md); found=TRUE; break; |