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

Wrong (hot) indentation on else for nested if

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P4: Low
    • None
    • Qt Creator 2.5.0-beta
    • C/C++/Obj-C++ Support
    • None

    Description

      int main()
        if (a)
          if (b)
            foo();
        else // wrong indentation
            bar(); // correct!
        else
          baz();
        return 0;
      }

      That's how it looks when writing. Invoking "Auto-indent Selection" makes it correct.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes