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

qmlformat: comment after a curly brace { moved to a separate line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.11
    • 6.8.0
    • QML: Tooling

    Description

      When placing comments after curly braces, the comments are moved to separate lines.

      Input:

      if (true) { // comment 1
        a();
      } else { // comment 2
         b();
      }
      

      Output:

      if (true) {
        // comment 1
        a();
      } else {
        // comment 2
        b();
      }
      

      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
              svlasov Sergey Vlasov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes