Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
Qt Creator 3.1.2
-
None
-
Qt Creator 3.1.2 (opensource)
Based on Qt 5.3.1 (GCC 4.6.1, 64 bit)
Built on Jun 23 2014 at 04:09:33
From revision a791e851a7
Description
When creating a switch/case statement that uses blocks inside a case the warning
is showed.Do not use stand-alone blocks. (M115)
e.g.
switch ( var ) { case 1: { break; } case 2: { break; } default: { break; } }
Many companies enforce using blocks inside cases as a coding standard.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-24214 Warning M115 when using blocks for switch/case and 'let'
- Closed