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

With Qt Creator 8 "Assign to Local Variable" function creates variable with "auto" type specifier

    XMLWordPrintable

Details

    • All
    • 0f7a539262 (qt-creator/qt-creator/master) 0f7a539262 (qt-creator/qt-creator/9.0)

    Description

      It hurts me much that the current Qt Creator 8 uses "auto" variable type when using "Assign to Local Variable" function. Before, it was using the actual type that the variable had.

      The previous behavior had a great value added in comparison with the current behavior:

      1. Immediately after using the "Assign to Local Variable", I knew that I was getting what I wanted.
      2. If I was using some new Qt function, I saw what I got from it.
      3. When the variable is labelled with the actual type, I can click on it and press F1 to get help for it quickly.

      Personally, I don't use "auto" type in my code because I think that labelling the variables with proper type makes the code maintenance much easier.

      Is the previous behavior gone, or is there some option to get it back?

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            ronperek Ronald Perek
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes