mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
C++: handle non-casts in hasExplicitConversion
This commit is contained in:
@@ -402,7 +402,7 @@ class Expr extends StmtParent, @expr {
|
||||
*/
|
||||
predicate hasImplicitConversion() {
|
||||
exists(Expr e |
|
||||
exprconv(underlyingElement(this), unresolveElement(e)) and e.(Cast).isImplicit()
|
||||
exprconv(underlyingElement(this), unresolveElement(e)) and e.(Conversion).isImplicit()
|
||||
)
|
||||
}
|
||||
|
||||
@@ -414,7 +414,7 @@ class Expr extends StmtParent, @expr {
|
||||
*/
|
||||
predicate hasExplicitConversion() {
|
||||
exists(Expr e |
|
||||
exprconv(underlyingElement(this), unresolveElement(e)) and not e.(Cast).isImplicit()
|
||||
exprconv(underlyingElement(this), unresolveElement(e)) and not e.(Conversion).isImplicit()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user