mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
C++: Add charpred to ParameterNode
This commit is contained in:
@@ -162,6 +162,12 @@ class ExprNode extends InstructionNode {
|
|||||||
* as `x` in `f(x)` and implicit parameters such as `this` in `x.f()`
|
* as `x` in `f(x)` and implicit parameters such as `this` in `x.f()`
|
||||||
*/
|
*/
|
||||||
class ParameterNode extends InstructionNode {
|
class ParameterNode extends InstructionNode {
|
||||||
|
ParameterNode() {
|
||||||
|
instr instanceof InitializeParameterInstruction
|
||||||
|
or
|
||||||
|
instr instanceof InitializeThisInstruction
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds if this node is the parameter of `c` at the specified (zero-based)
|
* Holds if this node is the parameter of `c` at the specified (zero-based)
|
||||||
* position. The implicit `this` parameter is considered to have index `-1`.
|
* position. The implicit `this` parameter is considered to have index `-1`.
|
||||||
|
|||||||
Reference in New Issue
Block a user