CLion 2019.1 Help

Inline Function

Refactor | Inline

Inline Function refactoring places function's body into the body of its caller(s). You can opt 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: 5 April 2019

See Also

Procedures:

External Links: