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

Add italic display for pointer function parameters

    XMLWordPrintable

Details

    • All
    • ed292f3f9b59c23114f27a562a131a145bd67d82 (qt-creator/qt-creator/4.14)

    Description

      For some time now we have the accentuation for non-const reference parameters, i.e.:

      void test(int &i)
      {
        ++i;
      }
      
      int main()
      {
        int i = 42;
        test(i); // <-- i is displayed italic here
      } 

      It could be useful to extend this to non-const pointers too, i.e.

      void test(int *i)
      {
       ++(*i);
      }
      
      int main()
      {
       int i = 42;
       test(&i); // <-- i could be displayed italic here
      }

      The reason is, that you can easily spot potential variable changes from within the function at caller side.

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              aha_1980 André Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes