mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
refactor(memory): use builtin strcat() instead of STRCAT()
The latter was mostly relevant with the past char_u madness. NOTE: STRCAT also functioned as a counterfeit "NOLINT" for clint apparently. But NOLINT-ing every usecase is just the same as disabling the check entirely.
This commit is contained in:
@@ -1995,7 +1995,7 @@ def CheckLanguage(filename, clean_lines, linenum, error):
|
||||
if match:
|
||||
error(filename, linenum, 'runtime/printf', 4,
|
||||
'Use xstrlcpy, xmemcpyz or snprintf instead of %s' % match.group(1))
|
||||
match = Search(r'\b(STRNCAT|strncat|strcat|vim_strcat)\b', line)
|
||||
match = Search(r'\b(STRNCAT|strncat|vim_strcat)\b', line)
|
||||
if match:
|
||||
error(filename, linenum, 'runtime/printf', 4,
|
||||
'Use xstrlcat or snprintf instead of %s' % match.group(1))
|
||||
|
Reference in New Issue
Block a user