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

"add definition in cpp" can lose namespace on type

    XMLWordPrintable

    Details

    • Commits:
      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

        For Gerrit Dashboard: QTCREATORBUG-26397
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            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