diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-09-29 19:48:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 19:48:50 +0200 |
commit | d90fb1c0bfc1e64c783c385a79e7de87013dadba (patch) | |
tree | 5a27261e9aed7ebdb95122fc888811ea5f903cc8 /src/nvim/viml/parser/expressions.c | |
parent | ec4731d982031e363a59efd4566fc72234bb43c8 (diff) | |
download | rneovim-d90fb1c0bfc1e64c783c385a79e7de87013dadba.tar.gz rneovim-d90fb1c0bfc1e64c783c385a79e7de87013dadba.tar.bz2 rneovim-d90fb1c0bfc1e64c783c385a79e7de87013dadba.zip |
Refactor/uncrustify (#15790)
* refactor: format with uncrustify
* fixup(dundar): fix functions comments
* fixup(dundar): remove space between variable and ++/--
* fixup(dundar): better workaround for macro attributes
This is done to be able to better use uncrustify rules for macros
* fixup(justin): make preprocessors follow neovim style guide
Diffstat (limited to 'src/nvim/viml/parser/expressions.c')
-rw-r--r-- | src/nvim/viml/parser/expressions.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/viml/parser/expressions.c b/src/nvim/viml/parser/expressions.c index c2aa923c49..39687a8e8d 100644 --- a/src/nvim/viml/parser/expressions.c +++ b/src/nvim/viml/parser/expressions.c @@ -936,7 +936,7 @@ static const char *intchar2str(const int ch) } #ifdef UNIT_TESTING -#include <stdio.h> +# include <stdio.h> REAL_FATTR_UNUSED static inline void viml_pexpr_debug_print_ast_node(const ExprASTNode *const *const eastnode_p, @@ -971,14 +971,14 @@ static inline void viml_pexpr_debug_print_token(const ParserState *const pstate, { fprintf(stderr, "\ntkn: %s\n", viml_pexpr_repr_token(pstate, token, NULL)); } -#define PSTACK(msg) \ +# define PSTACK(msg) \ viml_pexpr_debug_print_ast_stack(&ast_stack, #msg) -#define PSTACK_P(msg) \ +# define PSTACK_P(msg) \ viml_pexpr_debug_print_ast_stack(ast_stack, #msg) -#define PNODE_P(eastnode_p, msg) \ +# define PNODE_P(eastnode_p, msg) \ viml_pexpr_debug_print_ast_node((const ExprASTNode *const *)eastnode_p, \ (#msg)) -#define PTOKEN(tkn) \ +# define PTOKEN(tkn) \ viml_pexpr_debug_print_token(pstate, tkn) #endif |