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

Wrong indentation of anonymous code blocks (curly brackets)

    XMLWordPrintable

Details

    • 27026af2e353d228d104125e540127bd64034699

    Description

      This is what the indenter does to '

      { ... }

      ' blocks:

      int f(int x) {
          if (x)
          {
          { 
                  // do something
              }
          }
      }
      

      What I would expect:

      int f(int x) {
          if (x)
          {
              { 
                  // do something
              }
          }
      }
      

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes