We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e50166 commit 7ae7cddCopy full SHA for 7ae7cdd
test/cfg/std.cpp
@@ -2709,6 +2709,21 @@ void uninitvar_setbase(void)
2709
std::cout << std::setbase(p);
2710
}
2711
2712
+void uninivar_find(std::string s)
2713
+{
2714
+ // testing of size_t find (const string& str, size_t pos = 0)
2715
+ size_t pos;
2716
+ // cppcheck-suppress uninitvar
2717
+ (void)s.find("find",pos); // #6991
2718
+
2719
+ // testing of size_t find (const char* s, size_t pos = 0) const;
2720
+ char *c;
2721
2722
+ (void)s.find(c,0);
2723
2724
+ (void)s.find(c,pos);
2725
+}
2726
2727
void invalidFunctionArgBool_abs(bool b, double x, double y)
2728
{
2729
// cppcheck-suppress invalidFunctionArgBool
0 commit comments