Semmle 1.22
Skip to end of metadata
Go to start of metadata

Finds private non-virtual methods that are not accessed

import cpp

from MemberFunction fcn
where
  fcn.isPrivate() and
  not fcn.isVirtual() and
  not exists(FunctionCall call | fcn = call.getTarget())
select fcn.getDefinition()