postgresql/src/include/parser
Peter Eisentraut 611806cd72 Add trailing commas to enum definitions
Since C99, there can be a trailing comma after the last value in an
enum definition.  A lot of new code has been introducing this style on
the fly.  Some new patches are now taking an inconsistent approach to
this.  Some add the last comma on the fly if they add a new last
value, some are trying to preserve the existing style in each place,
some are even dropping the last comma if there was one.  We could
nudge this all in a consistent direction if we just add the trailing
commas everywhere once.

I omitted a few places where there was a fixed "last" value that will
always stay last.  I also skipped the header files of libpq and ecpg,
in case people want to use those with older compilers.  There were
also a small number of cases where the enum type wasn't used anywhere
(but the enum values were), which ended up confusing pgindent a bit,
so I left those alone.

Discussion: https://www.postgresql.org/message-id/flat/386f8c45-c8ac-4681-8add-e3b0852c1620%40eisentraut.org
2023-10-26 09:20:54 +02:00
..
analyze.h Avoid unnecessary plancache revalidation of utility statements. 2023-08-24 12:02:46 -04:00
kwlist.h Add more SQL/JSON constructor functions 2023-07-26 17:08:33 +09:00
parse_agg.h Allow parallel aggregate on string_agg and array_agg 2023-01-23 17:35:01 +13:00
parse_clause.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
parse_coerce.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
parse_collate.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
parse_cte.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
parse_enr.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
parse_expr.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
parse_func.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
parse_merge.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
parse_node.h Make Vars be outer-join-aware. 2023-01-30 13:16:20 -05:00
parse_oper.h Extend ALTER OPERATOR to allow setting more optimization attributes. 2023-10-20 12:28:46 -04:00
parse_param.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
parse_relation.h Make Vars be outer-join-aware. 2023-01-30 13:16:20 -05:00
parse_target.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
parse_type.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
parse_utilcmd.h Fix crashes with CREATE SCHEMA AUTHORIZATION and schema elements 2023-04-28 19:29:12 +09:00
parser.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
parsetree.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
scanner.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
scansup.h Update copyright for 2023 2023-01-02 15:00:37 -05:00