CLion 2018.2 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

ItemDescription
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: 18 September 2018

See Also

Procedures:

External Links: