CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

Extract parameter

Last modified: 25 July 2022

The Extract Parameter refactoring is used to add a new parameter to a function declaration and to update the function calls accordingly.

Extract Parameter uses either the default type value or the value with which the variable is initialized.

The following demo illustrates the usage of the Extract parameter refactoring, as well as Extract function, Extract lambda parameter, and Live templates: