Package: libkf5textwidgets5 X-Debbugs-Cc: cliffjki...@gmail.com Version: 5.103.0-1 Severity: minor Tags:
Dear Maintainer, Using a braced initializer in kdevelop breaks code folding. EXAMPLE CODE TO REPRODUCE void testfunc(){ //comment std::ifstream file{"ooh.a.file", std::ios::binary | std::ios::in}; //comment //code body } int main(){ //comment } OBSERVED RESULT Code fold point appears at "void testfunc" AND at "std::ifstream". The one at "std::ifstream" folds the whole function, the one at "void testfunc" folds to the end of the file. EXPECTED RESULT Code fold point appears at "void testfunc" only and folds the whole function. SOFTWARE/OS VERSIONS Linux: 6.1.0-30 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION Workaround available. Adding a space at the end of the brace initializer like: std::ifstream file{"ooh.a.file", std::ios::binary | std::ios::in }; Puts the expected code fold point back. This was originally reported to KDE, as it was found in a KDE app (Kdevelop), KDE told me to report it to you. https://bugs.kde.org/show_bug.cgi?id=499263