Files
codeql/cpp/ql/examples/field_access.ql
2019-07-26 17:47:11 +02:00

16 lines
303 B
Plaintext

/**
* @name Access of field
* @description Finds reads of `aDate` (defined on class `Order`)
* @tags access
* field
* read
*/
import cpp
from Field f, FieldAccess access
where f.hasName("aDate")
and f.getDeclaringType().hasName("Order")
and f = access.getTarget()
select access