cppcheck-lib.cfg: Added cfg file for internal use

This commit is contained in:
Daniel Marjamäki 2017-10-10 11:25:30 +02:00
parent abc3779e61
commit 4afa8ef9d7
1 changed files with 46 additions and 0 deletions

46
cfg/cppcheck-lib.cfg Normal file
View File

@ -0,0 +1,46 @@
<?xml version="1.0"?>
<def>
<function name="Token::astOperand1,Token::astOperand2,Token::astParent,Token::fileIndex,Token::linenr,Token::function,Token::link,Token::next,Token::previous,Token::scope,Token::str,Token::varId,Token::variable">
<noreturn>false</noreturn>
<use-retval/>
</function>
<function name="Token::Match">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
<not-null/>
<strz/>
</arg>
<arg nr="3" default="0">
<not-uninit/>
<not-bool/>
</arg>
</function>
<function name="Token::simpleMatch">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
<not-null/>
<strz/>
</arg>
</function>
<function name="Token::linkAt,Token::strAt,Token::tokAt">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
<valid>-50:50</valid>
<not-bool/>
</arg>
</def>