FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/cpp/ql/examples/snippets/function_call.ql at codeql-cli/v2.27.1 · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
473
(473)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
cpp
/
ql
/
examples
/
snippets
/
function_call.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 405 Bytes
Breadcrumbs
codeql
/
cpp
/
ql
/
examples
/
snippets
/
function_call.ql
Copy path
File metadata and controls
18 lines (16 loc) · 405 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/function-call
* @name Call to function
* @description Finds calls to `std::map<...>::find()`
* @tags call
* function
* method
*/
import
cpp
from
FunctionCall
call
,
Function
fcn
where
call
.
getTarget
(
)
=
fcn
and
fcn
.
getDeclaringType
(
)
.
getSimpleName
(
)
=
"map"
and
fcn
.
getDeclaringType
(
)
.
getNamespace
(
)
.
getName
(
)
=
"std"
and
fcn
.
hasName
(
"find"
)
select
call
Back
|
FazBrowse Home
|
New Git URL