GNOME Bugzilla – Bug 644864
Nested anonymous namespaces are reported as being the “cpp” namespace
Last modified: 2011-03-26 12:57:29 UTC
Created attachment 183472 [details] test case Hello, Since my update to Doxygen 1.7.3, some anonymous namespaces are reported as being the “cpp” namespace. The issue can be reproduced with the following cpp file: =================================================== /** * \file */ #include "Foo.hpp" namespace shq { namespace { void private_function( ) { } } } =================================================== If there is no “Foo.hpp”, then the function is properly detected as belonging to “shq::anonymous_namespace{Foo.cpp}”. As soon as there is a “Foo.hpp” file (even empty), the function is detected as belonging to “namespace shq::cpp”. The bug exists in Doxygen 1.7.3 but didn’t exist in 1.7.1.
I think this is another instance of the regression there was in handling #includes (see bug 639716). Should be fixed in the next release. *** This bug has been marked as a duplicate of bug 639716 ***