diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2024-11-19 22:57:13 +0000 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2024-11-19 22:57:13 +0000 |
| commit | 9be89f131f87608f224f0ee06d199fcd09d32176 (patch) | |
| tree | 11022dcfa9e08cb4ac5581b16734196128688d48 /src/clint.py | |
| parent | ff7ed8f586589d620a806c3758fac4a47a8e7e15 (diff) | |
| parent | 88085c2e80a7e3ac29aabb6b5420377eed99b8b6 (diff) | |
| download | rneovim-9be89f131f87608f224f0ee06d199fcd09d32176.tar.gz rneovim-9be89f131f87608f224f0ee06d199fcd09d32176.tar.bz2 rneovim-9be89f131f87608f224f0ee06d199fcd09d32176.zip | |
Merge remote-tracking branch 'upstream/master' into mix_20240309
Diffstat (limited to 'src/clint.py')
| -rwxr-xr-x | src/clint.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/clint.py b/src/clint.py index 41058469b1..b57bbe354b 100755 --- a/src/clint.py +++ b/src/clint.py @@ -848,7 +848,7 @@ def CheckIncludes(filename, lines, error): or filename.endswith('.in.h') or FileInfo(filename).RelativePath() in { 'func_attr.h', - 'os/pty_process.h', + 'os/pty_proc.h', }): return @@ -869,7 +869,7 @@ def CheckIncludes(filename, lines, error): "src/nvim/msgpack_rpc/unpacker.h", "src/nvim/option.h", "src/nvim/os/pty_conpty_win.h", - "src/nvim/os/pty_process_win.h", + "src/nvim/os/pty_proc_win.h", ] skip_headers = [ @@ -880,6 +880,8 @@ def CheckIncludes(filename, lines, error): "mpack/object.h", "nvim/func_attr.h", "termkey/termkey.h", + "vterm/vterm.h", + "xdiff/xdiff.h", ] for i in check_includes_ignore: @@ -895,6 +897,7 @@ def CheckIncludes(filename, lines, error): if (not name.endswith('.h.generated.h') and not name.endswith('/defs.h') and not name.endswith('_defs.h') and + not name.endswith('h.inline.generated.h') and not name.endswith('_defs.generated.h') and not name.endswith('_enum.generated.h')): error(filename, i, 'build/include_defs', 5, @@ -1779,7 +1782,7 @@ def CheckSpacing(filename, clean_lines, linenum, error): r'(?<!\bPMap)' r'(?<!\bSet)' r'(?<!\bArrayOf)' - r'(?<!\bDictionaryOf)' + r'(?<!\bDictOf)' r'(?<!\bDict)' r'\((?:const )?(?:struct )?[a-zA-Z_]\w*(?: *\*(?:const)?)*\)' r' +' @@ -1995,7 +1998,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)) |