FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/cpp/ql/examples/snippets/unusedmethod.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
/
unusedmethod.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 385 Bytes
Breadcrumbs
codeql
/
cpp
/
ql
/
examples
/
snippets
/
unusedmethod.ql
Copy path
File metadata and controls
18 lines (16 loc) · 385 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
18
/**
* @id cpp/examples/unusedmethod
* @name Unused private method
* @description Finds private non-virtual methods that are not accessed
* @tags method
* access
* private
* virtual
*/
import
cpp
from
MemberFunction
fcn
where
fcn
.
isPrivate
(
)
and
not
fcn
.
isVirtual
(
)
and
not
exists
(
FunctionCall
call
|
fcn
=
call
.
getTarget
(
)
)
select
fcn
.
getDefinition
(
)
Back
|
FazBrowse Home
|
New Git URL