| Summary: |
Indentation for nested switch statement |
| Product: |
[Tools] CDT
|
Reporter: |
Roland Schulz <roland> |
| Component: |
cdt-editor | Assignee: |
Project Inbox <cdt-editor-inbox> |
| Status: |
NEW
---
|
QA Contact: |
Jonah Graham <jonah> |
| Severity: |
normal
|
|
|
| Priority: |
P3
|
CC: |
cdtdoug, eclipse.sprigogin, elaskavaia.cdt, ibelkov, malaperle, spakpower, yevshif
|
| Version: |
8.0.1 | Flags: |
elaskavaia.cdt:
review?
(eclipse.sprigogin)
|
| Target Milestone: |
--- | |
|
| Hardware: |
PC | |
|
| OS: |
Windows 7 | |
|
| Whiteboard: |
|
| Attachments: |
| Description |
Flags |
|
patch
|
elaskavaia.cdt:
iplog+, elaskavaia.cdt:
review?
|
|
For the code: int a; main() { switch (a) { case 0: switch (a) { default: } break; case 1: } } Source->Correct Indentation moves "case 1" one level to the right. As if "case 1" belonged to the nested switch. Source->Format indents the code correctly. Reproducible: always