Skip to content

Template relation doesn't appear on graph #11144

@Sblawy

Description

@Sblawy

Describe the bug
While using doxygen to generate relation graph, the templated element appear but the link (orange arrow) with the base template is not present.
In the next example, the 2 structs have the template but only one appear in graph.
The only one who appear is the one who extends the templated class.

Screenshots
class_hierarchy
inherited_template_struct_doc
template_struct_doc

To Reproduce
The Doxyfile is attached to the issue, and the code used in sceen is here :

namespace test_package {
  struct T_1;
  struct T_2;
  template <typename T> struct TemplaceStruct {};

  struct HeritedStruct1: public TemplaceStruct<T_1> {
    static int getValue()
    {
      return 1;
    }
  };

  struct TemplaceStruct<T_2> {
    static int getValue()
    {
      return 2;
    }
  };
}

Expected behavior
In this case, the orange arrow to identify the template need to appear for struct TemplaceStruct<T_2>.
Ideally, having a page with all relationships (inheritance and template) will be a most.

Version
1.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions