Adjust in_decl logic to avoid messing up enum declarations.
authorTom Lane <[email protected]>
Tue, 20 Jun 2017 19:45:41 +0000 (15:45 -0400)
committerTom Lane <[email protected]>
Tue, 20 Jun 2017 19:45:41 +0000 (15:45 -0400)
commitb3b581502dbf2804bc16fc99089d53811f5ef7ee
treeb33d4672182cd8da2d95990cbbf6b60fa179a0fe
parentdc8b3f67104281db426fe1c4676440e65b92d32b
Adjust in_decl logic to avoid messing up enum declarations.

This is a workaround for an acknowledged upstream bug; it basically
reverts this logic to the way it was in NetBSD indent.  While there
may eventually be a different upstream fix, this will do for our
purposes.  Add a regression test case that illustrates the problem,
and tweak declarations.0.stdout for slightly different formatting
produced for a function pointer typedef.
indent.c
tests/declarations.0.stdout
tests/enum.0 [new file with mode: 0644]
tests/enum.0.stdout [new file with mode: 0644]