- 
    
Bug
 - 
    Resolution: Done
 - 
    
P2: Important
 - 
    Qt Creator 3.1.0-beta
 - 
    Windows 7 64 bit
ClangCodeModel disabled (default) 
- 
        453389e9d23c69309251252a27091fbcf0ff7f8a
 
- Create a new Qt Widgets Application project.
 - 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(); }
 - Fold function main:

 
When main is folded, the return and the closing brace should not be shown. Creator 3.0 does this right.
- replaces
 - 
                    
QTCREATORBUG-11491 Errors in scopes determining
-         
     - Closed
 
 -         
 - 
                    
QTCREATORBUG-11567 Regression: Extra brace is added for function when pressing Enter
-         
 - Closed
 
 -