mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
17 lines
328 B
Plaintext
17 lines
328 B
Plaintext
/**
|
|
* @name Switch statement case missing
|
|
* @description Finds switch statements with a missing enum constant case
|
|
* and no default case
|
|
* @tags switch
|
|
* case
|
|
* enum
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from EnumSwitch es, EnumConstant ec
|
|
where
|
|
ec = es.getAMissingCase() and
|
|
not es.hasDefaultCase()
|
|
select es, ec
|