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

Item

Description

Inline all invocations and remove the function

Select this option to replace all the method calls with its code and remove the function.

Inline this invocations only and keep the function

Select this option to replace only the current function call.

Preview

Click this button to see the expected changes prior to actually performing the refactoring.

Refactor

Click this button to perform the refactoring right away.

Last modified: 08 March 2021