mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
18 lines
337 B
Plaintext
18 lines
337 B
Plaintext
/**
|
|
* @id cpp/examples/field-access
|
|
* @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
|