std.cfg: Add std::make_pair() (#1165)

This commit is contained in:
Sebastian 2018-04-11 19:16:55 +02:00 committed by orbitcowboy
parent ef62207ada
commit a36dad918a
2 changed files with 15 additions and 0 deletions

View File

@ -6507,6 +6507,15 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<iterator container="2" type="first"/>
</arg>
</function>
<!-- template< class T1, class T2 > std::pair<T1,T2> make_pair( T1 t, T2 u ); // until C++11 -->
<!-- template< class T1, class T2 > std::pair<V1,V2> make_pair( T1&& t, T2&& u ); // since C++11 until C++14 -->
<!-- template< class T1, class T2 > constexpr std::pair<V1,V2> make_pair( T1&& t, T2&& u ); // since C++14 -->
<function name="std::make_pair">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1"/>
<arg nr="2"/>
</function>
<!--#define offsetof(type, member) /*implementation-defined*/-->
<function name="offsetof">
<noreturn>false</noreturn>

View File

@ -3056,6 +3056,12 @@ void ignoredReturnValue_string_compare(std::string teststr, std::wstring testwst
testwstr.compare(L"wtest");
}
void ignoredReturnValue_make_pair()
{
// cppcheck-suppress ignoredReturnValue
std::make_pair(1, 2);
}
void nullPointer_ifstream_read(std::ifstream &f)
{
// cppcheck-suppress nullPointer