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

"add definition in cpp" can lose namespace on type

    XMLWordPrintable

Details

    • 05e698a478c7a91bef5aa16ec9215fe391b8a195 (qt-creator/qt-creator/6.0)

    Description

      a small issue in the "add definition" feature:

      #include <array>
      
      struct foo
      {
          template <int N>
          using int_array = std::array<int, N>;
          
          int_array<5> bar();
      };
      

      if i "add definition" for bar(), qtcreator generates:

      int_array<5> foo::bar()
      {}
      

      but of course it should be:

      foo::int_array<5> foo::bar()
      {}
      
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes