зеркало из https://github.com/github/codeql.git
C++: Ensure 'isConditionalTemporaryDestructorCall' only holds when the reused expression is a temporary.
This commit is contained in:
Родитель
17c8fa3e84
Коммит
c325a79206
|
@ -287,7 +287,10 @@ private predicate isInConditionalEvaluation(Expr e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
private predicate isConditionalTemporaryDestructorCall(DestructorCall dc) {
|
private predicate isConditionalTemporaryDestructorCall(DestructorCall dc) {
|
||||||
isInConditionalEvaluation(dc.getQualifier().(ReuseExpr).getReusedExpr())
|
exists(TemporaryObjectExpr temp |
|
||||||
|
temp = dc.getQualifier().(ReuseExpr).getReusedExpr() and
|
||||||
|
isInConditionalEvaluation(temp)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче