CLion 2024.1 Help

Generate definitions

When a function's declaration exists in a class or a namespace but has no implementation yet, you can create definition (implementation) for that function using the Generate definition action.

Generate a function definition

  1. Place the caret in the editor and do one of the following:

    • Press Ctrl+Shift+D.

    • Press Ctrl+Shift+D and select Generate Definitions:

      The Generate popup
  2. Select one or more functions to generate definitions for:

    The Generate Definitions dialog
  3. Click OK to apply.

Last modified: 16 April 2024