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

Extract define

Last modified: 27 December 2022

The Extract Define refactoring method defines the selected set of tokens as macro using #define directive and replaces the set of tokens with macro call in the code; macro definition can be located in the current file or moved to the related header file.

Example