mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
12 lines
420 B
Plaintext
12 lines
420 B
Plaintext
import cpp
|
|
|
|
from Function f, Class namingClass, Class base
|
|
where f.canAccessClass(base, namingClass)
|
|
and // filter out compiler-generated junk
|
|
not namingClass.getNamespace() instanceof GlobalNamespace
|
|
and // only in same namespace
|
|
f.getNamespace() = namingClass.getNamespace()
|
|
and not f.isCompilerGenerated()
|
|
select f.getQualifiedName(),
|
|
"Can convert "+ namingClass.getName() +" -> "+ base.getName()
|