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

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes