Version: git master (using KDE 4.7.3) OS: Linux See reproducability Reproducible: Didn't try Steps to Reproduce: The following code is entered into a cpp file: #include <vector> int main(void) { std::vector<bool> v; for (auto x : v) {} for (;;) {} return 0; } Then run "Edit->Reformat Source" Actual Results: The C++11 ranged for is placed at the beginning of the line while the traditional for is properly indented Expected Results: For both for statements to be properly indented
this is true, but please report this upstream to the astyle people. once they have fixed it we can update our libastyle and should get the fix as well. cheers
I wasn't aware KDevelop used an external library for this. It appears the bug is already reported on their bug tracker. See http://sourceforge.net/tracker/?func=detail&aid=3458402&group_id=2319&atid=102319