cppcheck/cfg/sqlite3.cfg

127 lines
4.1 KiB
INI

<?xml version="1.0"?>
<def format="2">
<!-- SQLite Library Configuration -->
<!-- C API Reference: https://www.sqlite.org/capi3ref.html -->
<!-- ########## SQLite Types ########## -->
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_int64 -->
<podtype name="sqlite3_int64" sign="s" size="8"/>
<podtype name="sqlite_int64" sign="s" size="8"/>
<podtype name="sqlite3_uint64" sign="u" size="8"/>
<podtype name="sqlite_uint64" sign="u" size="8"/>
<!-- ########## SQLite values / defines ########## -->
<define name="SQLITE_OK" value="0"/>
<!-- ########## SQLite Memory Allocation / Deallocation ########## -->
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_free -->
<memory>
<alloc init="false">sqlite3_malloc</alloc>
<alloc init="false">sqlite3_malloc64</alloc>
<dealloc>sqlite3_free</dealloc>
</memory>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_str_new -->
<memory>
<alloc init="true">sqlite3_str_new</alloc>
<dealloc>sqlite3_str_finish</dealloc>
</memory>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_str_finish -->
<memory>
<alloc init="true">sqlite3_str_finish</alloc>
<dealloc>sqlite3_free</dealloc>
</memory>
<!-- ########## SQLite Resource Allocation / Deallocation ########## -->
<!-- https://www.sqlite.org/capi3ref.html#sqlite3 -->
<resource>
<alloc arg="2">sqlite3_open</alloc>
<alloc arg="2">sqlite3_open16</alloc>
<alloc arg="2">sqlite3_open_v2</alloc>
<dealloc>sqlite3_close</dealloc>
<dealloc>sqlite3_close_v2</dealloc>
</resource>
<!-- ########## SQLite Functions ########## -->
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_close -->
<!-- int sqlite3_close(sqlite3*); -->
<!-- int sqlite3_close_v2(sqlite3*); -->
<function name="sqlite3_close,sqlite3_close_v2">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_errcode -->
<!-- const char *sqlite3_errmsg(sqlite3*); -->
<!-- const void *sqlite3_errmsg16(sqlite3*); -->
<function name="sqlite3_errmsg,sqlite3_errmsg16">
<noreturn>false</noreturn>
<returnValue type="const char *"/>
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_finalize -->
<!-- int sqlite3_finalize(sqlite3_stmt *pStmt); -->
<function name="sqlite3_finalize">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_free -->
<!-- void sqlite3_free(void*); -->
<function name="sqlite3_free">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_free -->
<!-- void *sqlite3_malloc(int); -->
<function name="sqlite3_malloc">
<noreturn>false</noreturn>
<returnValue type="void *"/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
<valid>1:</valid>
</arg>
</function>
<!-- void *sqlite3_malloc64(sqlite3_uint64); -->
<function name="sqlite3_malloc64">
<noreturn>false</noreturn>
<returnValue type="void *"/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
<valid>1:</valid>
</arg>
</function>
<!-- sqlite3_uint64 sqlite3_msize(void*); -->
<function name="sqlite3_msize">
<noreturn>false</noreturn>
<returnValue type="sqlite3_uint64"/>
<use-retval/>
<arg nr="1" direction="in">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_open -->
<!-- int sqlite3_open(const char *filename, /* Database filename (UTF-8) */
sqlite3 **ppDb /* OUT: SQLite db handle */); -->
<function name="sqlite3_open">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
<strz/>
</arg>
<arg nr="2" direction="out">
<not-null/>
<not-bool/>
</arg>
</function>
</def>