mirror of
https://github.com/github/codeql.git
synced 2026-07-14 07:48:16 +02:00
12 lines
343 B
Plaintext
12 lines
343 B
Plaintext
/**
|
|
* @name EnumConst
|
|
* @kind table
|
|
*/
|
|
import cpp
|
|
|
|
from Enum e, Declaration c, string reason
|
|
where (c.(EnumConstant).getDeclaringEnum() = e and reason = "getDeclaringEnum()") or
|
|
(c.(EnumConstant).getType() = e and reason = "getType()") or
|
|
(c.(Field).getDeclaringType() = e and reason = "getDeclaringType()")
|
|
select e, c, reason
|