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

Auto-indent does not work with specific C++ code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • Qt Creator 4.6.2
    • C/C++/Obj-C++ Support
    • Windows 10

    Description

      Auto-indent stops working correctly if a specific C++ code is present. 

      Not working means:

      • "fix indentation in selection" (Ctrl+I, German: "Einrückung is Auswahl korrigieren)
      • Entering new-lines brings the cursor to the wrong position

      The following code is an example: it is a project I am working on, one version of the function is fine (if some lines are commented out), and one version is broken (after line 100).
      test_syntax.cpp

      Attachments

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

        Activity

          People

            artem.sokolovskii Artem Sokolovskii
            werner.rammer Werner Rammer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes