cppcheck-cfg.rng: more strict about 'format' and 'valid'

This commit is contained in:
Daniel Marjamäki 2015-01-29 07:28:40 +01:00
parent 250a082e46
commit 0c89afcc48
1 changed files with 11 additions and 2 deletions

View File

@ -3,7 +3,12 @@
<start>
<element name="def">
<optional>
<attribute name="format"><data type="integer"/></attribute>
<attribute name="format">
<data type="integer">
<param name="minInclusive">1</param>
<param name="maxInclusive">20</param>
</data>
</attribute>
</optional>
<zeroOrMore>
<choice>
@ -80,7 +85,11 @@
<element name="not-bool"><empty/></element>
<element name="not-null"><empty/></element>
<element name="not-uninit"><empty/></element>
<element name="valid"><text/></element>
<element name="valid">
<data type="string">
<param name="pattern">([-]?[0-9]+[,])*([-]?[0-9]+)?:([-]?[0-9]+)?</param>
</data>
</element>
<element name="minsize">
<attribute name="type">
<ref name="DATA-NAME"/>