CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds switch statements with a missing enum constant case and no default case

import cpp

from EnumSwitch es, EnumConstant ec
where
  ec = es.getAMissingCase() and
  not es.hasDefaultCase()
select es, ec