Fixed #8078 (cppcheck-cfg.rng outdated)
This commit is contained in:
parent
b41350e8d8
commit
7875054f36
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!-- Based on http://www.nongnu.org/avr-libc/user-manual/group__avr__stdint.html -->
|
<!-- Based on http://www.nongnu.org/avr-libc/user-manual/group__avr__stdint.html -->
|
||||||
<def format="1">
|
<def format="2">
|
||||||
<!-- stdint.h -->
|
<!-- stdint.h -->
|
||||||
<define name="__USING_MINT8" value="0"/>
|
<define name="__USING_MINT8" value="0"/>
|
||||||
<define name="__CONCATenate(left, right)" value="left ## right"/>
|
<define name="__CONCATenate(left, right)" value="left ## right"/>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<element name="def">
|
<element name="def">
|
||||||
<optional>
|
<optional>
|
||||||
<attribute name="format">
|
<attribute name="format">
|
||||||
<value>1</value>
|
<value>2</value>
|
||||||
</attribute>
|
</attribute>
|
||||||
</optional>
|
</optional>
|
||||||
<zeroOrMore>
|
<zeroOrMore>
|
||||||
|
@ -17,14 +17,24 @@
|
||||||
<element name="memory">
|
<element name="memory">
|
||||||
<zeroOrMore>
|
<zeroOrMore>
|
||||||
<choice>
|
<choice>
|
||||||
<element name="dealloc"><ref name="DATA-NAME"/></element>
|
<element name="dealloc">
|
||||||
|
<optional>
|
||||||
|
<attribute name="arg">
|
||||||
|
<ref name="ARGNO"/>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<ref name="DATA-EXTNAME"/>
|
||||||
|
</element>
|
||||||
<element name="alloc">
|
<element name="alloc">
|
||||||
<optional>
|
<optional>
|
||||||
<attribute name="init"><ref name="DATA-BOOL"/></attribute>
|
<attribute name="init"><ref name="DATA-BOOL"/></attribute>
|
||||||
</optional>
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="arg"><ref name="ARGNO"/></attribute>
|
||||||
|
</optional>
|
||||||
<ref name="DATA-NAME"/>
|
<ref name="DATA-NAME"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="use"><ref name="DATA-NAME"/></element>
|
<element name="use"><ref name="DATA-EXTNAME"/></element>
|
||||||
</choice>
|
</choice>
|
||||||
</zeroOrMore>
|
</zeroOrMore>
|
||||||
</element>
|
</element>
|
||||||
|
@ -32,29 +42,55 @@
|
||||||
<element name="resource">
|
<element name="resource">
|
||||||
<zeroOrMore>
|
<zeroOrMore>
|
||||||
<choice>
|
<choice>
|
||||||
<element name="dealloc"><ref name="DATA-NAME"/></element>
|
<element name="dealloc">
|
||||||
|
<optional>
|
||||||
|
<attribute name="arg">
|
||||||
|
<ref name="ARGNO"/>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<ref name="DATA-EXTNAME"/>
|
||||||
|
</element>
|
||||||
<element name="alloc">
|
<element name="alloc">
|
||||||
<optional>
|
<optional>
|
||||||
<attribute name="init"><ref name="DATA-BOOL"/></attribute>
|
<attribute name="init"><ref name="DATA-BOOL"/></attribute>
|
||||||
</optional>
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="arg"><ref name="ARGNO"/></attribute>
|
||||||
|
</optional>
|
||||||
<ref name="DATA-NAME"/>
|
<ref name="DATA-NAME"/>
|
||||||
</element>
|
</element>
|
||||||
<element name="use"><ref name="DATA-NAME"/></element>
|
<element name="use"><ref name="DATA-EXTNAME"/></element>
|
||||||
</choice>
|
</choice>
|
||||||
</zeroOrMore>
|
</zeroOrMore>
|
||||||
</element>
|
</element>
|
||||||
|
|
||||||
<element name="function">
|
<element name="function">
|
||||||
<attribute name="name">
|
<attribute name="name">
|
||||||
<ref name="DATA-NAME"/>
|
<ref name="DATA-EXTNAME"/>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
|
||||||
<zeroOrMore>
|
<zeroOrMore>
|
||||||
<choice>
|
<choice>
|
||||||
<element name="noreturn"><ref name="DATA-BOOL"/></element>
|
<element name="noreturn"><ref name="DATA-BOOL"/></element>
|
||||||
<element name="pure"><empty/></element>
|
<element name="pure"><empty/></element>
|
||||||
|
<element name="const"><empty/></element>
|
||||||
<element name="ignorefunction"><ref name="DATA-BOOL"/></element>
|
<element name="ignorefunction"><ref name="DATA-BOOL"/></element>
|
||||||
<element name="leak-ignore"><empty/></element>
|
<element name="leak-ignore"><empty/></element>
|
||||||
|
<element name="returnValue">
|
||||||
|
<optional>
|
||||||
|
<attribute name="type">
|
||||||
|
<data type="string">
|
||||||
|
<param name="pattern">([a-zA-Z_][a-zA-Z_0-9]*[ ])*([a-zA-Z_][a-zA-Z_0-9]*::)*[a-zA-Z_][a-zA-Z_0-9]*([ ]?[*])*</param>
|
||||||
|
</data>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="container">
|
||||||
|
<data type="positiveInteger"/>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<text/>
|
||||||
|
</element>
|
||||||
<element name="use-retval"><empty/></element>
|
<element name="use-retval"><empty/></element>
|
||||||
<element name="formatstr">
|
<element name="formatstr">
|
||||||
<optional>
|
<optional>
|
||||||
|
@ -65,13 +101,50 @@
|
||||||
</optional>
|
</optional>
|
||||||
<empty/>
|
<empty/>
|
||||||
</element>
|
</element>
|
||||||
|
<element name="warn">
|
||||||
|
<attribute name="severity">
|
||||||
|
<choice>
|
||||||
|
<value>error</value>
|
||||||
|
<value>warning</value>
|
||||||
|
<value>style</value>
|
||||||
|
<value>performance</value>
|
||||||
|
<value>portability</value>
|
||||||
|
<value>information</value>
|
||||||
|
</choice>
|
||||||
|
</attribute>
|
||||||
|
<optional>
|
||||||
|
<attribute name="reason">
|
||||||
|
<choice>
|
||||||
|
<value>Obsolescent</value>
|
||||||
|
<value>Obsolete</value>
|
||||||
|
</choice>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="alternatives">
|
||||||
|
<ref name="DATA-EXTNAME"/>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="cstd">
|
||||||
|
<value>c99</value>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<text/>
|
||||||
|
</element>
|
||||||
<element name="arg">
|
<element name="arg">
|
||||||
<attribute name="nr">
|
<attribute name="nr">
|
||||||
<choice>
|
<choice>
|
||||||
<ref name="ARGNO"/>
|
<ref name="ARGNO"/>
|
||||||
<value>any</value>
|
<value>any</value>
|
||||||
|
<value>variadic</value>
|
||||||
</choice>
|
</choice>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
<optional>
|
||||||
|
<attribute name="default">
|
||||||
|
<text/>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
<zeroOrMore>
|
<zeroOrMore>
|
||||||
<choice>
|
<choice>
|
||||||
<element name="formatstr"><empty/></element>
|
<element name="formatstr"><empty/></element>
|
||||||
|
@ -81,7 +154,7 @@
|
||||||
<element name="not-uninit"><empty/></element>
|
<element name="not-uninit"><empty/></element>
|
||||||
<element name="valid">
|
<element name="valid">
|
||||||
<data type="string">
|
<data type="string">
|
||||||
<param name="pattern">([-]?[0-9]+[,])*([-]?[0-9]+)?:([-]?[0-9]+)?</param>
|
<param name="pattern">(-?[0-9]*:-?[0-9]*,)*([-]?[0-9]+[,])*([-]?[0-9]+)?:([-]?[0-9]+)?</param>
|
||||||
</data>
|
</data>
|
||||||
</element>
|
</element>
|
||||||
<element name="minsize">
|
<element name="minsize">
|
||||||
|
@ -102,6 +175,18 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
</optional>
|
</optional>
|
||||||
</element>
|
</element>
|
||||||
|
<element name="iterator">
|
||||||
|
<attribute name="container">
|
||||||
|
<data type="positiveInteger"/>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="type">
|
||||||
|
<choice>
|
||||||
|
<value>first</value>
|
||||||
|
<value>middle</value>
|
||||||
|
<value>last</value>
|
||||||
|
</choice>
|
||||||
|
</attribute>
|
||||||
|
</element>
|
||||||
</choice>
|
</choice>
|
||||||
</zeroOrMore>
|
</zeroOrMore>
|
||||||
</element>
|
</element>
|
||||||
|
@ -190,6 +275,12 @@
|
||||||
<optional>
|
<optional>
|
||||||
<attribute name="inherits"><text/></attribute>
|
<attribute name="inherits"><text/></attribute>
|
||||||
</optional>
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="opLessAllowed"><ref name="DATA-BOOL"/></attribute>
|
||||||
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="itEndPattern"><text/></attribute>
|
||||||
|
</optional>
|
||||||
<zeroOrMore>
|
<zeroOrMore>
|
||||||
<choice>
|
<choice>
|
||||||
<element name="type">
|
<element name="type">
|
||||||
|
@ -210,25 +301,10 @@
|
||||||
<attribute name="name"><ref name="DATA-NAME"/></attribute>
|
<attribute name="name"><ref name="DATA-NAME"/></attribute>
|
||||||
<choice>
|
<choice>
|
||||||
<attribute name="action">
|
<attribute name="action">
|
||||||
<choice>
|
<ref name="CONTAINER-ACTION"/>
|
||||||
<value>resize</value>
|
|
||||||
<value>clear</value>
|
|
||||||
<value>push</value>
|
|
||||||
<value>pop</value>
|
|
||||||
<value>find</value>
|
|
||||||
</choice>
|
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="yields">
|
<attribute name="yields">
|
||||||
<choice>
|
<ref name="CONTAINER-YIELDS"/>
|
||||||
<value>at_index</value>
|
|
||||||
<value>item</value>
|
|
||||||
<value>buffer</value>
|
|
||||||
<value>buffer-nt</value>
|
|
||||||
<value>start-iterator</value>
|
|
||||||
<value>end-iterator</value>
|
|
||||||
<value>size</value>
|
|
||||||
<value>empty</value>
|
|
||||||
</choice>
|
|
||||||
</attribute>
|
</attribute>
|
||||||
</choice>
|
</choice>
|
||||||
<empty/>
|
<empty/>
|
||||||
|
@ -243,11 +319,19 @@
|
||||||
</optional>
|
</optional>
|
||||||
<zeroOrMore>
|
<zeroOrMore>
|
||||||
<element name="function">
|
<element name="function">
|
||||||
<attribute name="name"><ref name="DATA-NAME"/></attribute>
|
<attribute name="name">
|
||||||
<choice>
|
<ref name="DATA-EXTNAME"/>
|
||||||
<attribute name="action"><text/></attribute>
|
</attribute>
|
||||||
<attribute name="yields"><text/></attribute>
|
<optional>
|
||||||
</choice>
|
<attribute name="action">
|
||||||
|
<ref name="CONTAINER-ACTION"/>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="yields">
|
||||||
|
<ref name="CONTAINER-YIELDS"/>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
<empty/>
|
<empty/>
|
||||||
</element>
|
</element>
|
||||||
</zeroOrMore>
|
</zeroOrMore>
|
||||||
|
@ -257,7 +341,7 @@
|
||||||
</element>
|
</element>
|
||||||
|
|
||||||
<element name="podtype">
|
<element name="podtype">
|
||||||
<attribute name="name"><ref name="DATA-NAME"/></attribute>
|
<attribute name="name"><ref name="DATA-EXTNAME"/></attribute>
|
||||||
<optional>
|
<optional>
|
||||||
<attribute name="size">
|
<attribute name="size">
|
||||||
<choice>
|
<choice>
|
||||||
|
@ -280,7 +364,7 @@
|
||||||
</element>
|
</element>
|
||||||
|
|
||||||
<element name="platformtype">
|
<element name="platformtype">
|
||||||
<attribute name="name"><ref name="DATA-NAME"/></attribute>
|
<attribute name="name"><ref name="DATA-EXTNAME"/></attribute>
|
||||||
<attribute name="value"><ref name="DATA-NAME"/></attribute>
|
<attribute name="value"><ref name="DATA-NAME"/></attribute>
|
||||||
<oneOrMore>
|
<oneOrMore>
|
||||||
<choice>
|
<choice>
|
||||||
|
@ -321,4 +405,39 @@
|
||||||
<param name="pattern">[a-zA-Z_][a-zA-Z_0-9]*</param>
|
<param name="pattern">[a-zA-Z_][a-zA-Z_0-9]*</param>
|
||||||
</data>
|
</data>
|
||||||
</define>
|
</define>
|
||||||
|
|
||||||
|
<define name="DATA-EXTNAME">
|
||||||
|
<data type="string">
|
||||||
|
<param name="pattern">[a-zA-Z_][a-zA-Z_0-9:,]*</param>
|
||||||
|
</data>
|
||||||
|
</define>
|
||||||
|
|
||||||
|
<define name="CONTAINER-ACTION">
|
||||||
|
<choice>
|
||||||
|
<value>resize</value>
|
||||||
|
<value>clear</value>
|
||||||
|
<value>push</value>
|
||||||
|
<value>pop</value>
|
||||||
|
<value>find</value>
|
||||||
|
<value>insert</value>
|
||||||
|
<value>erase</value>
|
||||||
|
<value>change-content</value>
|
||||||
|
<value>change-internal</value>
|
||||||
|
<value>change</value>
|
||||||
|
</choice>
|
||||||
|
</define>
|
||||||
|
|
||||||
|
<define name="CONTAINER-YIELDS">
|
||||||
|
<choice>
|
||||||
|
<value>at_index</value>
|
||||||
|
<value>item</value>
|
||||||
|
<value>buffer</value>
|
||||||
|
<value>buffer-nt</value>
|
||||||
|
<value>start-iterator</value>
|
||||||
|
<value>end-iterator</value>
|
||||||
|
<value>iterator</value>
|
||||||
|
<value>size</value>
|
||||||
|
<value>empty</value>
|
||||||
|
</choice>
|
||||||
|
</define>
|
||||||
</grammar>
|
</grammar>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<def format="1">
|
<def format="2">
|
||||||
<memory>
|
<memory>
|
||||||
<dealloc>free</dealloc>
|
<dealloc>free</dealloc>
|
||||||
<alloc init="true">get_current_dir_name</alloc>
|
<alloc init="true">get_current_dir_name</alloc>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!-- THIS FILE IS GENERATED AUTOMATICALLY. See https://github.com/scriptum/cppcheck-libs -->
|
<!-- THIS FILE IS GENERATED AUTOMATICALLY. See https://github.com/scriptum/cppcheck-libs -->
|
||||||
<def format="1">
|
<def format="2">
|
||||||
<define name="g_return_if_fail(expr)" value="do{if(!(expr)){return;}}while(0)"/>
|
<define name="g_return_if_fail(expr)" value="do{if(!(expr)){return;}}while(0)"/>
|
||||||
<define name="g_return_val_if_fail(expr, val)" value="do{if(!(expr)){return val;}}while(0)"/>
|
<define name="g_return_val_if_fail(expr, val)" value="do{if(!(expr)){return val;}}while(0)"/>
|
||||||
<define name="g_return_if_reached()" value="do{return;}while(0)"/>
|
<define name="g_return_if_reached()" value="do{return;}while(0)"/>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<def format="1">
|
<def format="2">
|
||||||
<!-- Microsoft SAL Annotations (see http://msdn.microsoft.com/en-us/library/ms182032(v=vs.110).aspx -->
|
<!-- Microsoft SAL Annotations (see http://msdn.microsoft.com/en-us/library/ms182032(v=vs.110).aspx -->
|
||||||
<!-- Input Parameters -->
|
<!-- Input Parameters -->
|
||||||
<define name="_In_" value=""/>
|
<define name="_In_" value=""/>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<def format="1">
|
<def format="2">
|
||||||
<markup ext=".qml" reporterrors="false" aftercode="true">
|
<markup ext=".qml" reporterrors="false" aftercode="true">
|
||||||
<!-- keywords in QML code to ignore -->
|
<!-- keywords in QML code to ignore -->
|
||||||
<keywords>
|
<keywords>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<def format="1">
|
<def format="2">
|
||||||
<function name="SDL_mutexP">
|
<function name="SDL_mutexP">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<def format="1">
|
<def format="2">
|
||||||
<function name="sf::err">
|
<function name="sf::err">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<def format="1">
|
<def format="2">
|
||||||
<platformtype name="__int8" value="char">
|
<platformtype name="__int8" value="char">
|
||||||
<platform type="win32A"/>
|
<platform type="win32A"/>
|
||||||
<platform type="win32W"/>
|
<platform type="win32W"/>
|
||||||
|
@ -2053,7 +2053,7 @@ HFONT CreateFont(
|
||||||
</function>
|
</function>
|
||||||
<!-- int _vsprintf_l(char *buffer, const char *format, locale_t locale, va_list argptr);
|
<!-- int _vsprintf_l(char *buffer, const char *format, locale_t locale, va_list argptr);
|
||||||
int __vswprintf_l(wchar_t *buffer, const wchar_t *format, locale_t locale, va_list argptr);-->
|
int __vswprintf_l(wchar_t *buffer, const wchar_t *format, locale_t locale, va_list argptr);-->
|
||||||
<function name="_vsprintf_l, __vswprintf_l">
|
<function name="_vsprintf_l,__vswprintf_l">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
|
|
Loading…
Reference in New Issue