# Refactor->Add definition expands macros and typedefs

• When I click on "Refactor->Add definition" to a function (except "Add definition here"/"Add definition inside class"), macros and typedefs get expanded and cv-qualifiers are rearranged. I don't want that. I'd like it rather to simply copy the text. Is there a way to change this setting, or is this simply not implemented like that? If that's the case, I don't understand why.

#define STD_STRING std::string

void foo(STD_STRING const& str);

// Result on GCC
void func(const std::__cxx11::string &str)
{
}