Skip to content

Commit aab0644

Browse files
Harmonize lexer adjacent function parameter names.
Make sure that function declarations use names that exactly match the corresponding names from function definitions for several "lexer adjacent" backend functions. These functions were missed by recent commits because they were obscured by clang-tidy warnings about functions whose signature is directly under the control of the lexer (flex seems to always generate function declarations with unnamed parameters). We probably can't fix most of the warnings it generates for translation units that get built from .l and .y files, but we can at least do this much. Author: Peter Geoghegan <pg@bowt.ie> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
1 parent e59a67f commit aab0644

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/bin/pgbench/exprparse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
PgBenchExpr *expr_parse_result;
2525

26-
static PgBenchExprList *make_elist(PgBenchExpr *exp, PgBenchExprList *list);
26+
static PgBenchExprList *make_elist(PgBenchExpr *expr, PgBenchExprList *list);
2727
static PgBenchExpr *make_null_constant(void);
2828
static PgBenchExpr *make_boolean_constant(bool bval);
2929
static PgBenchExpr *make_integer_constant(int64 ival);

src/include/replication/syncrep.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ extern void SyncRepUpdateSyncStandbysDefined(void);
103103
extern int syncrep_yyparse(void);
104104
extern int syncrep_yylex(void);
105105
extern void syncrep_yyerror(const char *str);
106-
extern void syncrep_scanner_init(const char *query_string);
106+
extern void syncrep_scanner_init(const char *str);
107107
extern void syncrep_scanner_finish(void);
108108

109109
#endif /* _SYNCREP_H */

src/include/replication/walsender_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ extern void WalSndSetState(WalSndState state);
119119
extern int replication_yyparse(void);
120120
extern int replication_yylex(void);
121121
extern void replication_yyerror(const char *str) pg_attribute_noreturn();
122-
extern void replication_scanner_init(const char *query_string);
122+
extern void replication_scanner_init(const char *str);
123123
extern void replication_scanner_finish(void);
124124
extern bool replication_scanner_is_replication_command(void);
125125

0 commit comments

Comments
 (0)