Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Refactor->Add definition expands macros and typedefs

Refactor->Add definition expands macros and typedefs

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 351 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • LogicStuffL Offline
    LogicStuffL Offline
    LogicStuff
    wrote on last edited by
    #1

    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)
    {
    }
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved