mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
lint
This commit is contained in:
parent
af59a290d8
commit
ca1ba1085a
@ -3915,24 +3915,21 @@ static int eval5(char_u **arg, typval_T *rettv, int evaluate)
|
||||
|
||||
// TODO(ZyX-I): move to eval/expressions
|
||||
|
||||
/*
|
||||
* Handle fifth level expression:
|
||||
* * number multiplication
|
||||
* / number division
|
||||
* % number modulo
|
||||
*
|
||||
* "arg" must point to the first non-white of the expression.
|
||||
* "arg" is advanced to the next non-white after the recognized expression.
|
||||
*
|
||||
* Return OK or FAIL.
|
||||
*/
|
||||
static int
|
||||
eval6 (
|
||||
char_u **arg,
|
||||
typval_T *rettv,
|
||||
int evaluate,
|
||||
int want_string /* after "." operator */
|
||||
) FUNC_ATTR_NO_SANITIZE_UNDEFINED
|
||||
/// Handle fifth level expression:
|
||||
/// - * number multiplication
|
||||
/// - / number division
|
||||
/// - % number modulo
|
||||
///
|
||||
/// @param[in,out] arg Points to the first non-whitespace character of the
|
||||
/// expression. Is advanced to the next non-whitespace
|
||||
/// character after the recognized expression.
|
||||
/// @param[out] rettv Location where result is saved.
|
||||
/// @param[in] evaluate If not true, rettv is not populated.
|
||||
/// @param[in] want_string True if "." is string_concatenation, otherwise
|
||||
/// float
|
||||
/// @return OK or FAIL.
|
||||
static int eval6(char_u **arg, typval_T *rettv, int evaluate, int want_string)
|
||||
FUNC_ATTR_NO_SANITIZE_UNDEFINED
|
||||
{
|
||||
typval_T var2;
|
||||
int op;
|
||||
|
@ -128,9 +128,11 @@
|
||||
# endif
|
||||
|
||||
# if NVIM_HAS_ATTRIBUTE(no_sanitize_undefined)
|
||||
# define REAL_FATTR_NO_SANITIZE_UNDEFINED __attribute__((no_sanitize_undefined))
|
||||
# define REAL_FATTR_NO_SANITIZE_UNDEFINED \
|
||||
__attribute__((no_sanitize_undefined))
|
||||
# elif NVIM_HAS_ATTRIBUTE(no_sanitize)
|
||||
# define REAL_FATTR_NO_SANITIZE_UNDEFINED __attribute__((no_sanitize("undefined")))
|
||||
# define REAL_FATTR_NO_SANITIZE_UNDEFINED \
|
||||
__attribute__((no_sanitize("undefined")))
|
||||
# endif
|
||||
# endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user