diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-08-25 21:46:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 21:46:08 (GMT) |
commit | d45d5c277a386aa694d582aafc6d1f06da5eab3f (patch) | |
tree | 4896dd00a4c859486a217001d076a90c0c56f372 /Tools/c-analyzer/c_parser/info.py | |
parent | 1e743616ac3f9466bc50768ecaf0860116bf4e59 (diff) | |
download | cpython-d45d5c277a386aa694d582aafc6d1f06da5eab3f.zip cpython-d45d5c277a386aa694d582aafc6d1f06da5eab3f.tar.gz cpython-d45d5c277a386aa694d582aafc6d1f06da5eab3f.tar.bz2 |
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.
Diffstat (limited to 'Tools/c-analyzer/c_parser/info.py')
-rw-r--r-- | Tools/c-analyzer/c_parser/info.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/c-analyzer/c_parser/info.py b/Tools/c-analyzer/c_parser/info.py index e9783cc..3fa9fef 100644 --- a/Tools/c-analyzer/c_parser/info.py +++ b/Tools/c-analyzer/c_parser/info.py @@ -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: |