cppcheck-lib.cfg: Enhance Cppcheck library configuration (#2009)

This commit is contained in:
Sebastian 2019-07-17 20:05:13 +02:00 committed by GitHub
parent d11d6f112e
commit a997a30824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 7 deletions

View File

@ -4,41 +4,69 @@
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- static bool Match(const Token *tok, const char pattern[], unsigned int varid = 0); -->
<function name="Token::Match">
<noreturn>false</noreturn>
<returnValue type="bool"/>
<use-retval/>
<arg nr="1">
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2">
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
<strz/>
</arg>
<arg nr="3" default="0">
<arg nr="3" default="0" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- static bool simpleMatch(const Token *tok, const char pattern[]); -->
<function name="Token::simpleMatch">
<noreturn>false</noreturn>
<returnValue type="bool"/>
<use-retval/>
<arg nr="1">
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2">
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
<strz/>
</arg>
</function>
<function name="Token::linkAt,Token::strAt,Token::tokAt">
<!-- const Token *linkAt(int index) const; -->
<!-- const Token *tokAt(int index) const; -->
<function name="Token::linkAt,Token::tokAt">
<noreturn>false</noreturn>
<returnValue type="const Token *"/>
<use-retval/>
<arg nr="1">
<const/>
<arg nr="1" direction="in">
<not-uninit/>
<valid>-50:50</valid>
<not-bool/>
</arg>
</function>
<!-- const std::string &strAt(int index) const; -->
<function name="Token::strAt">
<noreturn>false</noreturn>
<returnValue type="const std::string &amp;"/>
<use-retval/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
<valid>-50:50</valid>
<not-bool/>
</arg>
</function>
<!-- const ValueType *valueType() const; -->
<function name="Token::valueType">
<noreturn>false</noreturn>
<returnValue type="const ValueType *"/>
<use-retval/>
<const/>
<leak-ignore/>
</function>
</def>