std.cfg: Added support for std::swap.

This commit is contained in:
orbitcowboy 2017-10-11 13:12:00 +02:00
parent e4cdb51f7f
commit 5bc61e35a0
3 changed files with 51 additions and 48 deletions

View File

@ -4,44 +4,41 @@
<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>
<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>
<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>
<use-retval/>
<arg nr="1">
<not-uninit/>
<valid>-50:50</valid>
<not-bool/>
</arg>
</function>
</def>

View File

@ -5822,6 +5822,11 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<not-uninit/>
</arg>
</function>
<!-- template< class T > void swap( T& a, T& b );-->
<function name="std::swap">
<noreturn>false</noreturn>
<arg nr="2"/>
</function>
<!-- bool good() const; -->
<function name="std::ios::good,std::ios_base::good,std::ostream::good,std::ofstream::good">
<noreturn>false</noreturn>

View File

@ -33,7 +33,8 @@
#include "cppcheck.h"
#include "errorlogger.h"
static QString clangTidyCmd() {
static QString clangTidyCmd()
{
QString path = QSettings().value(SETTINGS_CLANG_PATH,QString()).toString();
if (!path.isEmpty())
path += '/';