C++/C#: document isThisIndirection and sync files

This commit is contained in:
Robert Marsh
2020-05-29 09:52:03 -07:00
parent a638a08bc5
commit f8cfcef9c9
5 changed files with 23 additions and 0 deletions

View File

@@ -542,6 +542,9 @@ class ReturnIndirectionInstruction extends VariableInstruction {
*/
final Language::Parameter getParameter() { result = var.(IRUserVariable).getVariable() }
/**
* Holds if this instruction is the return indirection for `this`.
*/
final predicate isThisIndirection() { var instanceof IRThisVariable }
}

View File

@@ -541,6 +541,11 @@ class ReturnIndirectionInstruction extends VariableInstruction {
* function.
*/
final Language::Parameter getParameter() { result = var.(IRUserVariable).getVariable() }
/**
* Holds if this instruction is the return indirection for `this`.
*/
final predicate isThisIndirection() { var instanceof IRThisVariable }
}
class CopyInstruction extends Instruction {

View File

@@ -541,6 +541,11 @@ class ReturnIndirectionInstruction extends VariableInstruction {
* function.
*/
final Language::Parameter getParameter() { result = var.(IRUserVariable).getVariable() }
/**
* Holds if this instruction is the return indirection for `this`.
*/
final predicate isThisIndirection() { var instanceof IRThisVariable }
}
class CopyInstruction extends Instruction {