Skip to content

Commit 2a8b4ae

Browse files
committed
python.cfg: Add Py_RETURN_* macros to reduce missingReturn false positives in daca@home
1 parent 928efe7 commit 2a8b4ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cfg/python.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?xml version="1.0"?>
22
<def format="2">
3+
<define name="Py_RETURN_FALSE" value="return Py_INCREF(Py_False), Py_False"/>
4+
<define name="Py_RETURN_NONE" value="return Py_INCREF(Py_None), Py_None"/>
5+
<define name="Py_RETURN_TRUE" value="return Py_INCREF(Py_True), Py_True"/>
6+
37
<!-- Python C API. see https://docs.python.org/2/c-api/index.html -->
48
<!-- ########## Python C API Types ########## -->
59
<define name="PY_LONG_LONG" value="long long"/>

0 commit comments

Comments
 (0)