diff --git a/cfg/std.cfg b/cfg/std.cfg index c05e167dd..217f1fcf5 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -7105,9 +7105,9 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init - - - + + + diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index e8180c696..91e6cedd1 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -3293,6 +3293,12 @@ void stdalgorithm(const std::list &ints1, const std::list &ints2) // cppcheck-suppress mismatchingContainers if (std::find(ints1.begin(), ints1.end(), 123) == ints2.end()) {} + // #9455 + std::list::const_iterator uninitItBegin; + std::list::const_iterator uninitItEnd; + // @todo cppcheck-suppress uninitvar + if (std::find(uninitItBegin, uninitItEnd, 123) == uninitItEnd) {} + // // cppcheck-suppress mismatchingContainers // cppcheck-suppress ignoredReturnValue @@ -3335,10 +3341,8 @@ void stdalgorithm(const std::list &ints1, const std::list &ints2) // // cppcheck-suppress mismatchingContainers std::for_each(ints1.begin(), ints2.end(), [](int i) {}); - } - void getline() { // #837