CLion 2021.2 Help

Inline Function

Refactor | Inline

Inline Function refactoring places function's body into the body of its caller(s). You have the option to:

  • inline all occurrences of the function, and delete the function

  • inline only a single occurrence, and retain the function

Inline all invocations and remove the functionSelect this option to replace all the method calls with its code and remove the function.
Inline this invocations only and keep the functionSelect this option to replace only the current function call.
PreviewClick this button to see the expected changes prior to actually performing the refactoring.
RefactorClick this button to perform the refactoring right away.
Last modified: 08 March 2021