CodeQL queries 1.24

Skip to end of metadata
Go to start of metadata

Finds local variables that are not accessed

import cpp

from LocalScopeVariable v
where
  not v instanceof Parameter and
  not exists(v.getAnAccess())
select v