C++: Also make protected members irrelevant.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-04-18 16:08:39 +01:00
parent e55f94c364
commit f6f5f97109

View File

@@ -58,7 +58,7 @@ module ModelGeneratorInput implements ModelGeneratorInputSig<Location, CppDataFl
* to be an implementation detail of some other "public" function for which
* we will generate a summary.
*/
private predicate isPrivate(Function f) {
private predicate isPrivateOrProtected(Function f) {
f.getNamespace().getParentNamespace*().isAnonymous()
or
exists(MemberFunction mf | mf = f |
@@ -75,7 +75,7 @@ module ModelGeneratorInput implements ModelGeneratorInputSig<Location, CppDataFl
// not relevant (which is good!)
not api.(Function).hasDefinition()
or
isPrivate(api)
isPrivateOrProtected(api)
or
api instanceof Destructor
or