CLion
 
Get CLion
Join the CLion 2025.1 Early Access Program and try out new features before they are released! Find out more

Code hierarchies

Last modified: 31 October 2024

In CLion, you can build the following hierarchies:

  • Type hierarchy shows parent and children classes of a class.

    To build it, place the caret at the desired class in the editor and call Navigate | Type Hierarchy from the main menu (or press Ctrl0H).

    Type hierarchy
  • Call hierarchy shows callers (supertypes) or callees (subtypes) of a function.

    To build it, select the function in the editor and call Navigate | Call Hierarchy from the main menu (or press CtrlAlt0H).

    Call hierarchy
  • Imports hierarchy shows where the current file is included and tracks all files included in the current file.

    To build it, open the file in the editor or select it in the Project view and call Navigate | Imports Hierarchy from the main menu (or press AltShift0H).

    Import hierarchy

Once built, hierarchies can be brought up for close examination in the Hierarchy tool window (View | Tool Windows | Hierarchy).

You can retain the current tab and have the next hierarchy built in a new one.