std.cfg: Added support for more interfaces
This commit is contained in:
parent
8647e644a5
commit
4c81a59c0b
11
cfg/std.cfg
11
cfg/std.cfg
|
@ -7914,6 +7914,17 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
|
|||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- bool std::bitset< N >::test( std::size_t pos ) const -->
|
||||
<function name="std::bitset::test">
|
||||
<noreturn>false</noreturn>
|
||||
<use-retval/>
|
||||
<returnValue type="bool"/>
|
||||
<leak-ignore/>
|
||||
<const/>
|
||||
<arg nr="1" direction="in">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- std::pair<iterator,iterator> std::map::equal_range( const Key& key ); -->
|
||||
<!-- std::pair<const_iterator,const_iterator> std::map::equal_range( const Key& key ) const; -->
|
||||
<!-- template< class K > std::pair<iterator,iterator> std::map::equal_range( const K& x ); // since C++14 -->
|
||||
|
|
|
@ -28,6 +28,15 @@
|
|||
#include <vector>
|
||||
#include <cstdarg>
|
||||
#include <functional>
|
||||
#include <bitset>
|
||||
|
||||
std::bitset<10> std_bitset_test_ignoredReturnValue()
|
||||
{
|
||||
std::bitset<10> b1("1111010000");
|
||||
// cppcheck-suppress ignoredReturnValue
|
||||
b1.test(2);
|
||||
return b1;
|
||||
}
|
||||
|
||||
void valid_code()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue