mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
16 lines
437 B
Plaintext
16 lines
437 B
Plaintext
import default
|
|
|
|
string getValueCategoryString(Expr expr) {
|
|
if expr.isLValueCategory() then
|
|
result = "lval"
|
|
else if expr.isXValueCategory() then
|
|
result = "xval"
|
|
else if expr.hasLValueToRValueConversion() then
|
|
result = "prval(load)"
|
|
else
|
|
result = "prval"
|
|
}
|
|
|
|
from Cast cast
|
|
select cast, cast.getSemanticConversionString(), getValueCategoryString(cast), cast.getType().toString(), cast.getExpr().getType().toString()
|