[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:
Rosen Penev
2020-04-02 16:58:05 -07:00
committed by Fabian Homborg
parent be036c443e
commit 8d3377e923
4 changed files with 9 additions and 10 deletions

View File

@@ -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. */