I have had some trouble with the way namespaces are handled in the XML
output, so I dug into the Doxygen code a little bit. In an instance
where I have a C++ namespace declared as:
namespace ExampleNamespace {
class A {
....
}
}
I have found that the name of class A is rolled up into
ExampleNamespace::A, so that there is no difference between the
namespace name and the class name. I looked through xmlgen.cpp and
found that when outputting the class name A, the namespace (found
through a getNamespaceDef call in the ClassDef object) is undefined.
After this, I searched through doxygen.cpp and found that in static void
addClassToContect(Entry *root) that the namespace of a class is stripped
off into namespaceName and then never used. Is this the desired
behavior? It seems to me that this name should be used to find the
innermost namespace and assigned to m_nspace in order to fully define
ClassDef.
Dan
|