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

Wrong (hot) indentation on else for nested if

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 2.5.0-beta
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      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

            • Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              orgads Orgad Shaneh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes