mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-29 14:21:24 -03:00
[clang-tidy] Use C++ using instead of typedef
Found with modernize-use-using Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Fabian Homborg
parent
be036c443e
commit
8d3377e923
@@ -74,13 +74,13 @@ typedef struct te_expr {
|
||||
te_expr *parameters[];
|
||||
} te_expr;
|
||||
|
||||
typedef struct te_builtin {
|
||||
using te_builtin = struct {
|
||||
const char *name;
|
||||
const void *address;
|
||||
int type;
|
||||
} te_builtin;
|
||||
};
|
||||
|
||||
typedef struct state {
|
||||
using state = struct {
|
||||
union {
|
||||
double value;
|
||||
const void *function;
|
||||
@@ -89,7 +89,7 @@ typedef struct state {
|
||||
const char *next;
|
||||
int type;
|
||||
te_error_type_t error;
|
||||
} state;
|
||||
};
|
||||
|
||||
/* Parses the input expression. */
|
||||
/* Returns NULL on error. */
|
||||
|
||||
Reference in New Issue
Block a user