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

Automatically editing function declaration when changing signature fails for std::function arguments with void return

    XMLWordPrintable

Details

    • Linux/X11
    • 3418f09da7c4724c69b45a99d377d01fa3929642 (qt-creator/qt-creator/4.14)

    Description

      Steps to reproduce:

      1. Define a class with a method:
      class foo
      {
      public:
          void bar();
      };
      1. Implement the bar method inside foo.cpp
      void bar()
      {
      }
      1. Modify the signature of bar inside foo.cpp
      void bar(std::function<void (int)> func)
      {
      }
      1. Press Alt + Return to modify the declaration of bar inside foo.h
      2. Qt Creator will have left off the void return type, declaring a syntactically invalid function object.

      Attachments

        Activity

          People

            kandeler Christian Kandeler
            nathanb Nathan Baker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: