mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
[CPP-434] Ctrl + Shift + F.
This commit is contained in:
@@ -15,9 +15,13 @@ import cpp
|
||||
import semmle.code.cpp.valuenumbering.GlobalValueNumbering
|
||||
|
||||
private predicate isSignedWithoutUnsignedCast(Expr e) {
|
||||
e.getType().getUnspecifiedType().(IntegralType).isSigned() /*and
|
||||
not e.getExplicitlyConverted().getType().getUnspecifiedType().(IntegralType).isUnsigned()*/
|
||||
}
|
||||
e.getType().getUnspecifiedType().(IntegralType).isSigned()
|
||||
/*
|
||||
* and
|
||||
* not e.getExplicitlyConverted().getType().getUnspecifiedType().(IntegralType).isUnsigned()
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
from RelationalOperation ro, AddExpr add, VariableAccess va1, VariableAccess va2
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user