Community
Participate
Working Groups
Build Identifier: PTP RDT XL C/C++ Compiler Support 4.2.0.201204032039 org.eclipse.ptp.rdt.xlc.feature.group With code folding enabled for statements. Switch statements in a remote C editor are not folded if they contain case statements. Which is really likely ... :-) Reproducible: Always Steps to Reproduce: Steps to reproduce: 1. enable folding in preference setting. 2. create a remote C/C++ project and copy following code to a source file: int main() { int x =0; switch (x){ case 1: x = 2; case 2: x = 3; case 3: x = 4; case 4: x = 5; default: x = 6; } return 0; } 3. Close and reopen the file, will see that switch statement is not folded. 4. Open same file from Remote system view , this time, will see it works (since the file will be downloaded and open up locally in this circumstance )
Created attachment 214899 [details] Fixfor code folding in switch statements.
(In reply to comment #1) > Created attachment 214899 [details] > Fixfor code folding in switch statements. Thanks for the patch Dave. However I'm getting a lot of errors when I tried to apply it. Can you do a pull and create the patch again?
I ignored the errors since the only change is in RemoteFoldingRegionsHandler. Applied to master and ptp_4_2. Thanks Dave.