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

Alt-Space -> Add Definition Outside Class replaces NTTPs with typename

    XMLWordPrintable

Details

    • 3f6522c38 (master)

    Description

      *GIVEN* A class

      <code>
      class C

      { template <typename T, std::size_t N> void foo(); }

      ;
      </code>

      *WHEN* Placing the cursor inside the foo, hitting Alt-Enter and selecting "Add Definition Outside Class"

      *THEN* The non-template-type-parameter (NTTP) std::size_t N is replaced by typename N in the definition:

      *EXPECTED* The definition keeps the NTTP and doesn't replace it with typename.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes