cppcheck/cfg/motif.cfg

152 lines
3.6 KiB
INI

<?xml version="1.0"?>
<def format="2">
<function name="MrmCloseHierarchy">
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<function name="MrmOpenHierarchy">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="4"/>
</function>
<function name="MrmOpenHierarchyPerDisplay">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="5"/>
</function>
<function name="XmFontListEntryFree">
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<function name="XmFontListCreate,XmFontListAppendEntry">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
</function>
<function name="XmStringCreateLocalized">
<noreturn>false</noreturn>
<use-retval/>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
</function>
<function name="XmStringCreateSimple">
<noreturn>false</noreturn>
<use-retval/>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
</function>
<function name="XmStringFree">
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<function name="XmStringGenerate">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="4"/>
</function>
<function name="XmTextGetString,XmTextGetStringWcs">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<resource>
<dealloc>MrmCloseHierarchy</dealloc>
<alloc init="true">MrmOpenHierarchy</alloc>
<alloc init="true">MrmOpenHierarchyPerDisplay</alloc>
</resource>
<!-- May cause false positives:
<resource>
<dealloc>XmClipboardUnlock</dealloc>
<alloc>XmClipboardLock</alloc>
</resource>
-->
<resource>
<dealloc>XmStringFree</dealloc>
<alloc init="true">XmStringCreateLocalized</alloc>
<alloc init="true">XmStringCreateSimple</alloc>
<alloc init="true">XmStringGenerate</alloc>
</resource>
<resource>
<dealloc>XtFree</dealloc>
<alloc>XmTextGetString</alloc>
</resource>
<resource>
<dealloc>XmFontListEntryFree</dealloc>
<alloc init="true">XmFontListCreate</alloc>
<alloc init="true">XmFontListAppendEntry</alloc>
</resource>
<!-- Intrinsics, not Motif... -->
<function name="XtAsprintf">
<arg nr="1"/>
<arg nr="2">
<formatstr/>
<not-null/>
<not-uninit/>
</arg>
</function>
<function name="XtFree">
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<function name="XtSetValues,XtGetValues">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="3"/>
</function>
<function name="XtSetSubvalues,XtGetSubvalues">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="5"/>
</function>
<function name="XtMalloc,XtNew,XtNewString">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<function name="XtCalloc">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
</function>
<resource>
<dealloc>XtFree</dealloc>
<alloc init="true">XtMalloc</alloc>
<alloc init="true">XtCalloc</alloc>
<alloc init="true">XtRealloc</alloc>
<alloc init="true">XtNew</alloc>
<alloc init="true">XtNewString</alloc>
</resource>
<define name="ClipboardFail" value="0"/>
<define name="ClipboardSuccess" value="1"/>
<define name="True" value="1"/>
<define name="False" value="0"/>
</def>