Merge pull request #20770 from dundargoc/refactor/lint

refactor: fix uncrustify lint errors
This commit is contained in:
bfredl 2022-10-21 17:45:10 +02:00 committed by GitHub
commit 90138d5ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 17 deletions

View File

@ -69,8 +69,7 @@ EXTERN char *msg_qflist INIT(= N_("[Quickfix List]"));
# include "buffer.h.generated.h" # include "buffer.h.generated.h"
#endif #endif
static inline void buf_set_changedtick(buf_T *buf, static inline void buf_set_changedtick(buf_T *buf, varnumber_T changedtick)
varnumber_T changedtick)
REAL_FATTR_NONNULL_ALL REAL_FATTR_ALWAYS_INLINE; REAL_FATTR_NONNULL_ALL REAL_FATTR_ALWAYS_INLINE;
/// Set b:changedtick, also checking b: for consistency in debug build /// Set b:changedtick, also checking b: for consistency in debug build

View File

@ -15,9 +15,7 @@
/// @param[in] objname Object name, used for error message. /// @param[in] objname Object name, used for error message.
/// ///
/// @return OK in case of success, FAIL otherwise. /// @return OK in case of success, FAIL otherwise.
int encode_vim_to_msgpack(msgpack_packer *packer, int encode_vim_to_msgpack(msgpack_packer *packer, typval_T *tv, const char *objname);
typval_T *tv,
const char *objname);
/// Convert VimL value to :echo output /// Convert VimL value to :echo output
/// ///
@ -26,9 +24,7 @@ int encode_vim_to_msgpack(msgpack_packer *packer,
/// @param[in] objname Object name, used for error message. /// @param[in] objname Object name, used for error message.
/// ///
/// @return OK in case of success, FAIL otherwise. /// @return OK in case of success, FAIL otherwise.
int encode_vim_to_echo(garray_T *packer, int encode_vim_to_echo(garray_T *packer, typval_T *tv, const char *objname);
typval_T *tv,
const char *objname);
/// Structure defining state for read_from_list() /// Structure defining state for read_from_list()
typedef struct { typedef struct {

View File

@ -127,8 +127,7 @@ static inline void viml_parser_destroy(ParserState *const pstate)
kvi_destroy(pstate->stack); kvi_destroy(pstate->stack);
} }
static inline void viml_preader_get_line(ParserInputReader *preader, static inline void viml_preader_get_line(ParserInputReader *preader, ParserLine *ret_pline)
ParserLine *ret_pline)
REAL_FATTR_NONNULL_ALL; REAL_FATTR_NONNULL_ALL;
/// Get one line from ParserInputReader /// Get one line from ParserInputReader
@ -152,8 +151,7 @@ static inline void viml_preader_get_line(ParserInputReader *const preader,
*ret_pline = pline; *ret_pline = pline;
} }
static inline bool viml_parser_get_remaining_line(ParserState *pstate, static inline bool viml_parser_get_remaining_line(ParserState *pstate, ParserLine *ret_pline)
ParserLine *ret_pline)
REAL_FATTR_ALWAYS_INLINE REAL_FATTR_WARN_UNUSED_RESULT REAL_FATTR_NONNULL_ALL; REAL_FATTR_ALWAYS_INLINE REAL_FATTR_WARN_UNUSED_RESULT REAL_FATTR_NONNULL_ALL;
/// Get currently parsed line, shifted to pstate->pos.col /// Get currently parsed line, shifted to pstate->pos.col
@ -178,8 +176,7 @@ static inline bool viml_parser_get_remaining_line(ParserState *const pstate,
return ret_pline->data != NULL; return ret_pline->data != NULL;
} }
static inline void viml_parser_advance(ParserState *pstate, static inline void viml_parser_advance(ParserState *pstate, size_t len)
size_t len)
REAL_FATTR_ALWAYS_INLINE REAL_FATTR_NONNULL_ALL; REAL_FATTR_ALWAYS_INLINE REAL_FATTR_NONNULL_ALL;
/// Advance position by a given number of bytes /// Advance position by a given number of bytes
@ -200,9 +197,7 @@ static inline void viml_parser_advance(ParserState *const pstate, const size_t l
} }
} }
static inline void viml_parser_highlight(ParserState *pstate, static inline void viml_parser_highlight(ParserState *pstate, ParserPosition start, size_t len,
ParserPosition start,
size_t len,
const char *group) const char *group)
REAL_FATTR_ALWAYS_INLINE REAL_FATTR_NONNULL_ALL; REAL_FATTR_ALWAYS_INLINE REAL_FATTR_NONNULL_ALL;