If the lhs argument to the `*' operator is a function call, no padding is inserted around the operator.
c:\SourcePro\main>type t.cpp
int g(float x, float t, float mx)
{
if (f(x)*t < mx) {
return 1;
}
return 0;
}
c:\SourcePro\main>astyle --pad-oper < t.cpp
int g(float x, float t, float mx)
{
if (f(x)*t < mx) {
return 1;
}
return 0;
}
As a workaround, I can reverse the parameters. I can also work around the problem by inserting a set of parenthesis around `t'.
You can test a fix in the latest git commit.
Fixed in 3.4.8.