Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28186

Move definition outside Class does not work for template function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 10.0.0-beta1
    • Qt Creator 8.0.1
    • C/C++/Obj-C++ Support
    • None
    • Linux, Creator from the installer, clangd with background indexing is enabled
    • a09e87b3d (master), 7c0bc1384 (master), 524f9e063 (master)

    Description

      Consider a simple project only consisting of a main.cpp file

      #include <QCoreApplication>
      struct S {
          template <typename In>
          void foo(In in) { (void)in; }
      
          void bar(int in) { (void)in; }
      };
      
      int main(int argc, char *argv[])
      {
      }
      

      For bar, triggering the refactor menu will offer the "Move definition outside Class" action; for the templated foo, this however doesn't happen.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes