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

"Add definition" fails to include fully qualified name of template type alias declared within class

    XMLWordPrintable

Details

    Description

      Consider the following class:

      class Foo
      {
      public:
          template<class T>
          using Result = std::variant<int, T>;
      
          Result<float> getBar();
      };
      

      When the user tries to add the definition of `Foo::getBar()` using "Refactor"->"Add definition", Qt Creator fails to include the fully qualified name of the function's return type, thus resulting in broken code.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            rui maciel Rui Maciel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes