CLion
 
Get CLion
Join the CLion 2025.1 Early Access Program and try out new features before they are released! Find out more

Extract parameter

Last modified: 08 October 2024

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: