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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.6.2
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              bubke Marco Bubke
              Reporter:
              werner.rammer Werner Rammer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes