mirror of
https://github.com/github/codeql.git
synced 2026-04-14 03:24:06 +02: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()
|