diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-06-11 10:25:32 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2024-06-11 14:53:52 +0200 |
commit | bbd2f340a2895ed59785f952b2585e6590602cad (patch) | |
tree | bf73f1cd76fde557a2353acfecdc385e66ee2103 /src/clint.py | |
parent | d8e384b7bfd5829e5ff5006202faa584b3211e84 (diff) | |
download | rneovim-bbd2f340a2895ed59785f952b2585e6590602cad.tar.gz rneovim-bbd2f340a2895ed59785f952b2585e6590602cad.tar.bz2 rneovim-bbd2f340a2895ed59785f952b2585e6590602cad.zip |
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.
Diffstat (limited to 'src/clint.py')
-rwxr-xr-x | src/clint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clint.py b/src/clint.py index 41058469b1..051f0e91e5 100755 --- a/src/clint.py +++ b/src/clint.py @@ -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)) |