mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
19 lines
405 B
Plaintext
19 lines
405 B
Plaintext
/**
|
|
* @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
|