refactor: add pure attribute to pure functions (#18165)

This will allow the compilers that support the pure attribute to make
further optimizations.
This commit is contained in:
dundargoc
2022-04-25 04:12:47 +02:00
committed by GitHub
parent 933274c438
commit c582194135
9 changed files with 53 additions and 12 deletions

View File

@@ -4969,6 +4969,7 @@ char_u *check_help_lang(char_u *arg)
///
/// @return a heuristic indicating how well the given string matches.
int help_heuristic(char_u *matched_string, int offset, int wrong_case)
FUNC_ATTR_PURE
{
int num_letters;
char_u *p;