C++: Fix QLDoc

This commit is contained in:
Mathias Vorreiter Pedersen
2022-03-08 14:38:39 +00:00
committed by GitHub
parent 69417e150a
commit d8bad778ed

View File

@@ -66,6 +66,7 @@ class ReturnStackAllocatedMemoryConfig extends MustFlowConfiguration {
* S s;
* return &s.x; // BAD: &s.x is an address of a variable on the stack.
* }
* ```
*/
override predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
node2.asInstruction().(FieldAddressInstruction).getObjectAddressOperand() = node1.asOperand()