parent
13e12da08f
commit
fc24f760cc
|
@ -78,10 +78,10 @@ struct ReverseTraversal {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
if (ftok->index() >= tok->index())
|
if (ftok->index() >= tok->index())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
if (ftok->link())
|
if (!ftok->link() || ftok->str() == ")")
|
||||||
ftok = ftok->link()->next();
|
|
||||||
else
|
|
||||||
ftok = ftok->next();
|
ftok = ftok->next();
|
||||||
|
else
|
||||||
|
ftok = ftok->link()->next();
|
||||||
}
|
}
|
||||||
if (ftok == tok)
|
if (ftok == tok)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
|
@ -6980,6 +6980,11 @@ private:
|
||||||
" void g(std::vector<int> (*f) () = nullptr);\n"
|
" void g(std::vector<int> (*f) () = nullptr);\n"
|
||||||
"};\n";
|
"};\n";
|
||||||
valueOfTok(code, "=");
|
valueOfTok(code, "=");
|
||||||
|
|
||||||
|
code = "void f(bool b) {\n" // #11627
|
||||||
|
" (*printf)(\"%s %i\", strerror(errno), b ? 0 : 1);\n"
|
||||||
|
"};\n";
|
||||||
|
valueOfTok(code, "?");
|
||||||
}
|
}
|
||||||
|
|
||||||
void valueFlowHang() {
|
void valueFlowHang() {
|
||||||
|
|
Loading…
Reference in New Issue