Skip to content

Commit ed266da

Browse files
committed
C++: Address review comments
1 parent b8eb2ab commit ed266da

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/aliased_ssa/PrintIR.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* * Literals: `Constant`.
3737
* * Variable addresses: `VariableAddress`.
3838
* * Function entry points: `EnterFunction`.
39-
* * Return form a function: `Return`, `ReturnVoid`. Note that the value being returned is set separately by a
39+
* * Return from a function: `Return`, `ReturnVoid`. Note that the value being returned is set separately by a
4040
* `Store` to a special `#return` variable.
4141
* * Stack unwinding for C++ function that throw and where the exception escapes the function: `Unwind`.
4242
* * Common exit point for `Unwind` and `Return`: `ExitFunction`.
@@ -93,7 +93,7 @@
9393
* int x = 5;
9494
* int y = 7;
9595
* int* p = condition ? &x : &y;
96-
* p = 6;
96+
* *p = 6;
9797
* return x;
9898
* ```
9999
*

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/PrintIR.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* * Literals: `Constant`.
3737
* * Variable addresses: `VariableAddress`.
3838
* * Function entry points: `EnterFunction`.
39-
* * Return form a function: `Return`, `ReturnVoid`. Note that the value being returned is set separately by a
39+
* * Return from a function: `Return`, `ReturnVoid`. Note that the value being returned is set separately by a
4040
* `Store` to a special `#return` variable.
4141
* * Stack unwinding for C++ function that throw and where the exception escapes the function: `Unwind`.
4242
* * Common exit point for `Unwind` and `Return`: `ExitFunction`.
@@ -93,7 +93,7 @@
9393
* int x = 5;
9494
* int y = 7;
9595
* int* p = condition ? &x : &y;
96-
* p = 6;
96+
* *p = 6;
9797
* return x;
9898
* ```
9999
*

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/PrintIR.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* * Literals: `Constant`.
3737
* * Variable addresses: `VariableAddress`.
3838
* * Function entry points: `EnterFunction`.
39-
* * Return form a function: `Return`, `ReturnVoid`. Note that the value being returned is set separately by a
39+
* * Return from a function: `Return`, `ReturnVoid`. Note that the value being returned is set separately by a
4040
* `Store` to a special `#return` variable.
4141
* * Stack unwinding for C++ function that throw and where the exception escapes the function: `Unwind`.
4242
* * Common exit point for `Unwind` and `Return`: `ExitFunction`.
@@ -93,7 +93,7 @@
9393
* int x = 5;
9494
* int y = 7;
9595
* int* p = condition ? &x : &y;
96-
* p = 6;
96+
* *p = 6;
9797
* return x;
9898
* ```
9999
*

0 commit comments

Comments
 (0)