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

Indenting does not work properly within 'if' statements

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes