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

When using the reformat file under the QML option it can modify QML to be invalid

    XMLWordPrintable

Details

    Description

      When using the format QML option it can modify QML to be invalid. For example the following snippet will change from:

          function swap(from, to) {
              for (var i = 0; i < 10; ++i) {
                  console.log(i)
              }
          }
      

      to

       function swap(fromto) {
              for (; i < 10; ++i) {
                  console.log(i)
              }
          }
      

      Attachments

        Issue Links

          Activity

            People

              tjenssen Tim Jenssen
              andysh Andy Shaw
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: