Community
Participate
Working Groups
Build ID: 120080617-2000 (version 3.4.0) Steps To Reproduce: * Create C++ project. * Create C++ class. * Make sure that "Folding" feature is enabled on methods. * Create method similar to the following example (make sure that you have line breaks as in this example): jungle::Monkey_ptr jungle::MonkeyImpl:: Initialize() { ... } * Fold the method and you will see "jungle::MonkeyImpl::". * Expected behavior, you should see method name (with or without namespace prefix). In java editor "folding" works correct, method name is always shown. * I am working in on a very big project where it is conventional to make the line breaks as in example above. More information:
We got a lot of (generated) code like that: if (421 > 0) { } else { } The if would fold in this simple case: if (421 > 0).. } else { } Another case where folding is totally off is where conditions expand to next line: if (1 && 2) { } else if (3 || 4) { } After folding: if (1.. || 4) { } eh? Curiously, while typing these examples for this bug in editor it would fold the line I am typing in the process of typing - hiding the very line I am typing from typing. I hope you get that but I am not sure if I could reproduce it again. Let me know if I should file separate bugs for that.
(In reply to comment #1) > Let me know if I should file separate bugs for that. Those issues seem to be related to statement folding. Yes, please file a separate bug for it.
sure - bug 248716
Created attachment 114527 [details] Fix
Fixed in 5.0.2 and HEAD > 20081008.