mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
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:
parent
1e743616ac
commit
d45d5c277a
4 changed files with 84 additions and 1534 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue