mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
15 lines
267 B
Plaintext
15 lines
267 B
Plaintext
/**
|
|
* @name class_attr
|
|
* @kind test
|
|
* @problem.severity warning
|
|
*/
|
|
|
|
import python
|
|
private import LegacyPointsTo
|
|
|
|
from ClassObject cls, ClassObject sup, int index
|
|
where
|
|
sup = cls.getMroItem(index) and
|
|
not cls.isC()
|
|
select cls.toString(), index, sup.toString()
|