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

Indenting does not work properly within 'if' statements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 2.3.0
    • Qt Creator 2.1.0
    • C/C++/Obj-C++ Support
    • None
    • Qt 4.7.1 (from git)
      Gentoo Linux
    • 779fafcbfe6f92dd1288664fae512f69bc12418b

      This is a regression. If I have the following 'if' statement:

      if (condition1 && (condition2 || condition3))
      {
      }
      

      Inserting line breaks is using the following indenting:

      if (condition1 &&
              (condition2 ||
               condition3)
      {
      }
      

      It simply double indents (inserts 6 spaces in my case). It used to do the following:

      if (condition1 &&
          (condition2 ||
           condition3))
      {
      }
      

      The first characters in any given grouping were aligned.

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

            ckamm Christian Kamm
            wongk Kris Wong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes