if (x) x++;
I can't think of any reason why we must not require a space after ) unless the next character is a ;
@shobhitg parenthesis also could be used for grouping, which is hard to deduce, also in some cases comma could be valid, there is probably more details, are you up for it?
Closing this due to inactivity. I'll reopen if the OP responds or someone else finds value in this.