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

        Activity

          People

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

            Dates

              Created:
              Updated: