FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/cpp/ql/examples/snippets/switchcase.ql at codeql-cli/v2.27.1 · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
483
(483)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
cpp
/
ql
/
examples
/
snippets
/
switchcase.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (15 loc) · 359 Bytes
Breadcrumbs
codeql
/
cpp
/
ql
/
examples
/
snippets
/
switchcase.ql
Copy path
File metadata and controls
17 lines (15 loc) · 359 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
* @id cpp/examples/switchcase
* @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
Back
|
FazBrowse Home
|
New Git URL