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

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

XMLWordPrintable

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

      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);
          }

       

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

            olivier.decanniere Olivier De Cannière
            ovidiu.tepescu Ovidiu Tepescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes