mirror of
https://github.com/github/codeql.git
synced 2026-03-22 23:49:43 +01:00
10 lines
322 B
Plaintext
10 lines
322 B
Plaintext
import cpp
|
|
|
|
from Function f, Class namingClass, Declaration member
|
|
where f.canAccessMember(member, namingClass)
|
|
and // only in same namespace
|
|
f.getNamespace() = namingClass.getNamespace()
|
|
and not f.isCompilerGenerated()
|
|
select f.getQualifiedName(),
|
|
"Can access "+ namingClass.getName() +"::"+ member.getName()
|