[go: up one dir, main page]

Skip to content

Regression in --indent-after-parens

Input C++ file:

if (false) {
	a.b = g(
			c);
}

(It's indented with tabs.)

AStyle is invoked as: astyle --indent=force-tab=8 --indent-after-parens input.

Version 3.1 was leaving the file as-is. Version 3.4.10 indents the argument by one more tab, which I believe is wrong:

if (false) {
	a.b = g(
				c);
}

I bisected this down to 2d1a8856, but I don't understand the code well enough to fix it. I also couldn't just revert the commit because of the conflicts that arise.