gh-90110: Update the c-analyzer Tool (gh-96255)

Here we automatically ignore uses of _PyArg_Parser, "kwlist" arrays, and module/type defs. That way new uses don't trigger false positives in the c-analyzer check script.
This commit is contained in:
Eric Snow 2022-08-25 15:46:08 -06:00 committed by GitHub
parent 1e743616ac
commit d45d5c277a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 84 additions and 1534 deletions

View file

@ -792,6 +792,7 @@ class Declaration(HighlevelParsedItem):
if kind is not cls.kind:
raise TypeError(f'expected kind {cls.kind.value!r}, got {row!r}')
fileinfo = FileInfo.from_raw(filename)
extra = None
if isinstance(data, str):
data, extra = cls._parse_data(data, fmt='row')
if extra: