2

Is there a way to disable adding inline namespaces to their enclosing namespaces in doxygen?

  • F.e. Running the test example 57 with a vanilla Doxyfile created with the wizard the following class list is produced

enter image description here

I'm looking for a way to disable library::v2::foo from being listed under library as well:

enter image description here

I'd prefer a configuration option but a special command, some sort of grouping or any other solution would also be ok.

Here's the source code for the test 57:

namespace library
{
    namespace v1
    {
        class foo { public: void member(); };
        void func();
        namespace NS {}
    }
    inline namespace v2
    {
        class foo { public: void member(); };
        void func();
        namespace NS {}
    }
}
jesses
  • 559
  • 3
  • 15
  • The members of an inline namespace are accessible through their owning namespace. Also, for most uses of inline namespaces, code external to the system is not *supposed* to know about or use the inline namespace. They're supposed to access those names through the namespace they're inlined into. So Doxygen is apparently doing the right thing here. – Nicol Bolas Apr 07 '21 at 21:25

0 Answers0