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

Regression: Code folding does not find end of function correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.1.0-beta
    • Fix Version/s: Qt Creator 3.1.0-beta
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
    • Environment:
      Windows 7 64 bit
      ClangCodeModel disabled (default)
    • Commits:
      453389e9d23c69309251252a27091fbcf0ff7f8a

      Description

      1. Create a new Qt Widgets Application project.
      2. Open the project's file main.cpp:
        #include "mainwindow.h"
        #include <QApplication>
        
        int main(int argc, char *argv[])
        {
            QApplication a(argc, argv);
            MainWindow w;
            w.show();
        
            return a.exec();
        }
        
      3. Fold function main:

      When main is folded, the return and the closing brace should not be shown. Creator 3.0 does this right.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes