Unused local variable

Author: LGTM

import cpp

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

Description

Finds local variables that are not accessed