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