Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix PYOBJECT_RE.
  • Loading branch information
ericsnowcurrently committed Sep 12, 2019
commit e373dbfef4d3447517d7959d45732e0099fe0ff9
9 changes: 4 additions & 5 deletions Tools/c-analyzer/c_globals/supported.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,20 +257,21 @@ def _is_vartype_okay(vartype, ignoredtypes=None):
^
(
# must start with "static "
static \w+
static \s+
(
identifier
)
\b
) |
(
# may start with "static "
( static \w+ )?
( static \s+ )?
(
.*
(
PyObject |
PyTypeObject |
_? Py\w+Object |
_? Py \w+ Object |
_PyArg_Parser |
_Py_Identifier |
traceback_t |
Expand All @@ -297,8 +298,6 @@ def _is_object(vartype):
return False
if PYOBJECT_RE.match(vartype):
return True
if re.match(r'.*\bPy\w*Object\b', vartype):
return True
if vartype.endswith((' _Py_FalseStruct', ' _Py_TrueStruct')):
return True

Expand Down