Fix 11062: false positive: knownEmptyContainer (regression) (#4106)
* Fix 11062: false positive: knownEmptyContainer (regression) * Format
This commit is contained in:
parent
5d8da2b83c
commit
6d3208ecb0
|
@ -7765,7 +7765,6 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
|
||||||
<use-retval/>
|
<use-retval/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
<iterator container="1" type="first"/>
|
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
<!-- template< class ForwardIt, class T > bool binary_search( ForwardIt first, ForwardIt last, const T& value ); (until C++20) -->
|
<!-- template< class ForwardIt, class T > bool binary_search( ForwardIt first, ForwardIt last, const T& value ); (until C++20) -->
|
||||||
|
|
|
@ -5780,6 +5780,15 @@ private:
|
||||||
"}\n",
|
"}\n",
|
||||||
true);
|
true);
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
|
check("extern void f(std::string&&);\n"
|
||||||
|
"static void func() {\n"
|
||||||
|
" std::string s;\n"
|
||||||
|
" const std::string& s_ref = s;\n"
|
||||||
|
" f(std::move(s));\n"
|
||||||
|
"}\n",
|
||||||
|
true);
|
||||||
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void checkMutexes() {
|
void checkMutexes() {
|
||||||
|
|
Loading…
Reference in New Issue