mirror of
https://github.com/github/codeql.git
synced 2026-03-05 15:16:47 +01:00
12 lines
263 B
Plaintext
12 lines
263 B
Plaintext
import cpp
|
|
|
|
from VariableAccess va, string description
|
|
where
|
|
if va.isAddressOfAccessNonConst() then
|
|
description = "non-const address"
|
|
else if va.isAddressOfAccess() then
|
|
description = "const address"
|
|
else
|
|
description = ""
|
|
select va, description
|