"Fossies" - the Fresh Open Source Software Archive

Member "cppcheck-1.89/cfg/python.cfg" (1 Sep 2019, 6662 Bytes) of package /windows/misc/cppcheck-1.89.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "python.cfg": 1.88_vs_1.89.

    1 <?xml version="1.0"?>
    2 <def format="2">
    3   <!-- Python C API. see https://docs.python.org/2/c-api/index.html -->
    4   <!-- Those are macros, but it's helpful to declare a function here -->
    5   <function name="Py_INCREF,Py_IncRef,Py_DECREF,Py_DecRef">
    6     <leak-ignore/>
    7     <noreturn>false</noreturn>
    8     <returnValue type="void"/>
    9     <arg nr="1">
   10       <not-null/>
   11       <not-uninit/>
   12     </arg>
   13   </function>
   14   <!-- Those are macros, but it's helpful to declare a function here -->
   15   <function name="Py_XINCREF,Py_XDECREF,Py_CLEAR">
   16     <leak-ignore/>
   17     <noreturn>false</noreturn>
   18     <returnValue type="void"/>
   19     <arg nr="1">
   20       <not-uninit/>
   21     </arg>
   22   </function>
   23   <function name="Py_Initialize,Py_Finalize">
   24     <noreturn>false</noreturn>
   25     <returnValue type="void"/>
   26   </function>
   27   <function name="Py_InitializeEx">
   28     <noreturn>false</noreturn>
   29     <returnValue type="void"/>
   30     <arg nr="1">
   31       <not-bool/>
   32       <not-uninit/>
   33     </arg>
   34   </function>
   35   <function name="Py_IsInitialized">
   36     <noreturn>false</noreturn>
   37     <pure/>
   38     <returnValue type="int"/>
   39     <use-retval/>
   40   </function>
   41   <function name="Py_Main">
   42     <leak-ignore/>
   43     <returnValue type="int"/>
   44     <arg nr="1">
   45       <not-uninit/>
   46       <valid>0:</valid>
   47     </arg>
   48     <arg nr="2">
   49       <not-uninit/>
   50     </arg>
   51   </function>
   52   <function name="Py_SetProgramName,Py_SetPythonHome">
   53     <leak-ignore/>
   54     <noreturn>false</noreturn>
   55     <returnValue type="void"/>
   56     <arg nr="1">
   57       <not-null/>
   58       <not-uninit/>
   59       <strz/>
   60     </arg>
   61   </function>
   62   <!-- void PyErr_Clear() -->
   63   <function name="PyErr_Clear">
   64     <noreturn>false</noreturn>
   65     <returnValue type="void"/>
   66   </function>
   67   <!-- PyObject* PyErr_Format(PyObject *exception, const char *format, ...) -->
   68   <function name="PyErr_Format">
   69     <noreturn>false</noreturn>
   70     <returnValue type="PyObject*">NULL</returnValue>
   71     <leak-ignore/>
   72     <arg nr="1">
   73       <not-uninit/>
   74     </arg>
   75     <arg nr="2" direction="in">
   76       <not-uninit/>
   77       <strz/>
   78     </arg>
   79     <arg nr="variadic" direction="in">
   80       <not-uninit/>
   81     </arg>
   82   </function>
   83   <!-- PyObject* PyErr_FormatV(PyObject *exception, const char *format, va_list vargs) -->
   84   <function name="PyErr_FormatV">
   85     <noreturn>false</noreturn>
   86     <returnValue type="PyObject*">NULL</returnValue>
   87     <leak-ignore/>
   88     <arg nr="1">
   89       <not-uninit/>
   90     </arg>
   91     <arg nr="2" direction="in">
   92       <not-uninit/>
   93       <strz/>
   94     </arg>
   95     <arg nr="3" direction="in">
   96       <not-uninit/>
   97     </arg>
   98   </function>
   99   <!-- PyObject* PyErr_NewException(const char *name, PyObject *base, PyObject *dict) -->
  100   <function name="PyErr_NewException">
  101     <noreturn>false</noreturn>
  102     <returnValue type="PyObject*"/>
  103     <use-retval/>
  104     <arg nr="1" direction="in">
  105       <not-uninit/>
  106       <strz/>
  107     </arg>
  108     <arg nr="2">
  109       <not-uninit/>
  110     </arg>
  111     <arg nr="3">
  112       <not-uninit/>
  113     </arg>
  114   </function>
  115   <!-- PyObject* PyErr_NewExceptionWithDoc(const char *name, const char *doc, PyObject *base, PyObject *dict) -->
  116   <function name="PyErr_NewExceptionWithDoc">
  117     <noreturn>false</noreturn>
  118     <returnValue type="PyObject*"/>
  119     <use-retval/>
  120     <arg nr="1" direction="in">
  121       <not-uninit/>
  122       <strz/>
  123     </arg>
  124     <arg nr="2" direction="in">
  125       <not-uninit/>
  126       <strz/>
  127     </arg>
  128     <arg nr="3">
  129       <not-uninit/>
  130     </arg>
  131     <arg nr="4">
  132       <not-uninit/>
  133     </arg>
  134   </function>
  135   <!-- PyObject* PyErr_SetFromErrno(PyObject *type) -->
  136   <function name="PyErr_SetFromErrno">
  137     <noreturn>false</noreturn>
  138     <returnValue type="PyObject*">NULL</returnValue>
  139     <leak-ignore/>
  140     <arg nr="1">
  141       <not-uninit/>
  142     </arg>
  143   </function>
  144   <!-- void PyErr_SetObject(PyObject *type, PyObject *value) -->
  145   <function name="PyErr_SetObject">
  146     <leak-ignore/>
  147     <noreturn>false</noreturn>
  148     <returnValue type="void"/>
  149     <arg nr="1">
  150       <not-null/>
  151       <not-uninit/>
  152     </arg>
  153     <arg nr="2">
  154       <not-null/>
  155       <not-uninit/>
  156     </arg>
  157   </function>
  158   <!-- void PyErr_SetString(PyObject *type, const char *message) -->
  159   <function name="PyErr_SetString">
  160     <leak-ignore/>
  161     <noreturn>false</noreturn>
  162     <returnValue type="void"/>
  163     <arg nr="1">
  164       <not-uninit/>
  165     </arg>
  166     <arg nr="2" direction="in">
  167       <strz/>
  168       <not-null/>
  169       <not-uninit/>
  170     </arg>
  171   </function>
  172   <function name="Py_GetProgramName,Py_GetExecPrefix,Py_GetProgramFullPath,Py_GetPath,Py_GetPythonHome">
  173     <noreturn>false</noreturn>
  174     <returnValue type="char *"/>
  175     <pure/>
  176     <use-retval/>
  177   </function>
  178   <function name="Py_GetVersion,Py_GetPlatform,Py_GetCopyright,Py_GetCompiler,Py_GetBuildInfo">
  179     <noreturn>false</noreturn>
  180     <returnValue type="const char *"/>
  181     <pure/>
  182     <use-retval/>
  183   </function>
  184   <!-- https://docs.python.org/2.0/ext/parseTuple.html
  185     PyObject *Py_BuildValue(char *format, ...); -->
  186   <function name="Py_BuildValue">
  187     <returnValue type="PyObject *"/>
  188     <noreturn>false</noreturn>
  189     <leak-ignore/>
  190     <use-retval/>
  191     <arg nr="1">
  192       <not-uninit/>
  193       <formatstr/>
  194     </arg>
  195     <arg nr="2"/>
  196   </function>
  197   <!-- https://docs.python.org/2.0/ext/parseTuple.html
  198     int PyArg_ParseTuple(PyObject *arg, char *format, ...); -->
  199   <function name="PyArg_ParseTuple">
  200     <returnValue type="int"/>
  201     <noreturn>false</noreturn>
  202     <leak-ignore/>
  203     <arg nr="1">
  204       <not-null/>
  205       <not-uninit/>
  206     </arg>
  207     <arg nr="2">
  208       <not-uninit/>
  209       <formatstr/>
  210     </arg>
  211     <arg nr="3"/>
  212   </function>
  213   <function name="PyArg_VaParse">
  214     <returnValue type="int"/>
  215     <noreturn>false</noreturn>
  216     <leak-ignore/>
  217     <arg nr="1">
  218       <not-null/>
  219       <not-uninit/>
  220     </arg>
  221     <arg nr="2">
  222       <not-uninit/>
  223     </arg>
  224     <arg nr="3">
  225       <not-uninit/>
  226     </arg>
  227   </function>
  228   <!-- int PyInt_Check(PyObject *o) -->
  229   <function name="PyInt_Check">
  230     <returnValue type="int"/>
  231     <noreturn>false</noreturn>
  232     <leak-ignore/>
  233     <arg nr="1">
  234       <not-bool/>
  235       <not-uninit/>
  236     </arg>
  237   </function>
  238   <!-- PyObject* PyInt_FromLong(long ival) -->
  239   <function name="PyInt_FromLong">
  240     <returnValue type="PyObject *"/>
  241     <noreturn>false</noreturn>
  242     <arg nr="1">
  243       <not-bool/>
  244       <not-uninit/>
  245     </arg>
  246   </function>
  247   <!-- Deprecated DL_IMPORT and DL_EXPORT macros -->
  248   <define name="DL_IMPORT(RTYPE)" value="RTYPE"/>
  249   <define name="DL_EXPORT(RTYPE)" value="RTYPE"/>
  250   <define name="Py_BEGIN_ALLOW_THREADS" value=""/>
  251   <define name="Py_END_ALLOW_THREADS" value=""/>
  252   <define name="Py_BLOCK_THREADS" value=""/>
  253   <define name="Py_UNBLOCK_THREADS" value=""/>
  254 </def>