mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
9 lines
330 B
Plaintext
9 lines
330 B
Plaintext
import cpp
|
|
|
|
from SwitchStmt ss, Element e, string reason
|
|
where (e = ss.getExpr() and reason = "getExpr")
|
|
or (e = ss.getStmt() and reason = "getStmt")
|
|
or (e = ss.getASwitchCase() and reason = "getASwitchCase")
|
|
or (e = ss.getDefaultCase() and reason = "getDefaultCase")
|
|
select ss, e.getLocation().getStartLine(), e, reason
|