Files
codeql/cpp/ql/test/library-tests/access/noPublic/noPublic.ql
2018-08-02 17:53:23 +01:00

8 lines
247 B
Plaintext

import cpp
from AccessSpecifier spec
// There is no way to create "protected" access without writing the keyword
// `protected` in the source, so we don't need to test for that.
where spec.hasName("private") or spec.hasName("public")
select spec