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

Fixits applied at wrong offset if fixits reference multiple files

    XMLWordPrintable

Details

    Description

      main.h:

      #ifndef MAIN_H
      #define MAIN_H
      
      #include <QChar>
      
      QChar foo(const QChar &character);
      
      #endif // MAIN_H
      

      main.cpp:

      #include "main.h"
      
      QChar foo(const QChar &character)
      {
          return character;
      }
      
      int main() {}
      

      When applying the fixits for "warning: Pass small and trivially-copyable type by value (const class QChar &) [-Wclazy-function-args-by-value]" main.cpp ends up as:

      #include "main.h"
      
      QChar foo(QChar character)
      {
          return character;
      }
      
      int maiQChar charactern() {}
      

      Attachments

        Activity

          People

            yvvan Ivan Donchevskii
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: