std.cfg: Added support for std::swap.
This commit is contained in:
parent
e4cdb51f7f
commit
5bc61e35a0
|
@ -1,47 +1,44 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<def>
|
<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">
|
<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>
|
<noreturn>false</noreturn>
|
||||||
<use-retval/>
|
<use-retval/>
|
||||||
</function>
|
</function>
|
||||||
|
<function name="Token::Match">
|
||||||
<function name="Token::Match">
|
<noreturn>false</noreturn>
|
||||||
<noreturn>false</noreturn>
|
<use-retval/>
|
||||||
<use-retval/>
|
<arg nr="1">
|
||||||
<arg nr="1">
|
<not-uninit/>
|
||||||
<not-uninit/>
|
</arg>
|
||||||
</arg>
|
<arg nr="2">
|
||||||
<arg nr="2">
|
<not-uninit/>
|
||||||
<not-uninit/>
|
<not-null/>
|
||||||
<not-null/>
|
<strz/>
|
||||||
<strz/>
|
</arg>
|
||||||
</arg>
|
<arg nr="3" default="0">
|
||||||
<arg nr="3" default="0">
|
<not-uninit/>
|
||||||
<not-uninit/>
|
<not-bool/>
|
||||||
<not-bool/>
|
</arg>
|
||||||
</arg>
|
</function>
|
||||||
</function>
|
<function name="Token::simpleMatch">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
<function name="Token::simpleMatch">
|
<use-retval/>
|
||||||
<noreturn>false</noreturn>
|
<arg nr="1">
|
||||||
<use-retval/>
|
<not-uninit/>
|
||||||
<arg nr="1">
|
</arg>
|
||||||
<not-uninit/>
|
<arg nr="2">
|
||||||
</arg>
|
<not-uninit/>
|
||||||
<arg nr="2">
|
<not-null/>
|
||||||
<not-uninit/>
|
<strz/>
|
||||||
<not-null/>
|
</arg>
|
||||||
<strz/>
|
</function>
|
||||||
</arg>
|
<function name="Token::linkAt,Token::strAt,Token::tokAt">
|
||||||
</function>
|
<noreturn>false</noreturn>
|
||||||
|
<use-retval/>
|
||||||
<function name="Token::linkAt,Token::strAt,Token::tokAt">
|
<arg nr="1">
|
||||||
<noreturn>false</noreturn>
|
<not-uninit/>
|
||||||
<use-retval/>
|
<valid>-50:50</valid>
|
||||||
<arg nr="1">
|
<not-bool/>
|
||||||
<not-uninit/>
|
</arg>
|
||||||
<valid>-50:50</valid>
|
</function>
|
||||||
<not-bool/>
|
</def>
|
||||||
</arg>
|
|
||||||
</function>
|
|
||||||
</def>
|
|
||||||
|
|
|
@ -5822,6 +5822,11 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
<!-- template< class T > void swap( T& a, T& b );-->
|
||||||
|
<function name="std::swap">
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<arg nr="2"/>
|
||||||
|
</function>
|
||||||
<!-- bool good() const; -->
|
<!-- bool good() const; -->
|
||||||
<function name="std::ios::good,std::ios_base::good,std::ostream::good,std::ofstream::good">
|
<function name="std::ios::good,std::ios_base::good,std::ostream::good,std::ofstream::good">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
|
|
|
@ -33,7 +33,8 @@
|
||||||
#include "cppcheck.h"
|
#include "cppcheck.h"
|
||||||
#include "errorlogger.h"
|
#include "errorlogger.h"
|
||||||
|
|
||||||
static QString clangTidyCmd() {
|
static QString clangTidyCmd()
|
||||||
|
{
|
||||||
QString path = QSettings().value(SETTINGS_CLANG_PATH,QString()).toString();
|
QString path = QSettings().value(SETTINGS_CLANG_PATH,QString()).toString();
|
||||||
if (!path.isEmpty())
|
if (!path.isEmpty())
|
||||||
path += '/';
|
path += '/';
|
||||||
|
|
Loading…
Reference in New Issue