Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133679

qmlformat: Post-Comment moves ',' to next line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.10
    • 6.8
    • QML: Tooling
    • None
    • All

    Description

      When splitting the arguments of a function call into separate lines and adding a // comment to them, the "," will be placed on the next line instead of the previous one.

      For example this lines:

          function test() {
              callFunction(a, //comments
              b,//comments
              c);
          }

      Will be formatted to:

          function test() {
              callFunction(a //comments
              , b//comments
              , c);
          }

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtqmlteam Qt Qml Team User
              ovidiu.tepescu Ovidiu Tepescu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes