Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 3.1.1, Qt Creator 3.2.0-beta1, Qt Creator 3.3.0-beta1
-
None
-
Windows 7
Description
Braces and lines of the try/catch/... statements are incorrectly indented when settings are as follows:
- braces are supposed to be indented
- lines within blocks are supposed not to be indented
required behaviour which works:
if ( something )
{
do_something();
}
required behaviour which does not work:
try { do_something(); } catch(...) { do_something_else(); }
for the example above braces are either left intact or opening brace is left as well as lines of code inside are left, while the closing brace is indented.
In my opinion the setting in 'Braces' page in 'Edit Code Style' dialog do not consider blocks in try/catch/... blocks as a block for indetation.