Looks like #434 introduced a regression.
Example:
obj.doThing(
1,
2,
"3"
);
Expected:
obj.doThing(
1,
2,
"3"
);
Actual:
obj.doThing(
1,
2,
"3"
);
Tested with all sorts of command line options, but it works with the default call of just astyle file.cpp.
Tested with 3.4.12.
It looks similar to 434 but indeed it is a very old behavior.
I'd like to bring attention to this issue again since it's a fairly bad bug. And because it looks like the problem got introduced with change #434, it's probably best to examine it and maybe revert #434 soon, before the codebase gets more complex and it becomes too hard to revert.
You might check the latest git code which should fix these indents:
https://gitlab.com/saalen/astyle/-/commit/913f24c3ef141edb1811ebde053276da1a11dc27
That seems to have solved it just fine. Thank you!
Released in 3.6.1