Skip to content

Commit 01035f1

Browse files
authored
Merge pull request #2123 from geoffw0/comparison2
CPP: Reword ComparisonPrecedence.ql query message.
2 parents 6d22e35 + f2656d8 commit 01035f1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

cpp/ql/src/Likely Bugs/Arithmetic/ComparisonPrecedence.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ where
1818
co.getAChild() = chco and
1919
not chco.isParenthesised() and
2020
not co.isFromUninstantiatedTemplate(_)
21-
select co, "Check the comparison operator precedence."
21+
select co, "Comparison as an operand to another comparison."
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
| template.cpp:4:7:4:15 | ... < ... | Check the comparison operator precedence. |
2-
| test.cpp:42:6:42:14 | ... < ... | Check the comparison operator precedence. |
3-
| test.cpp:43:6:43:14 | ... > ... | Check the comparison operator precedence. |
4-
| test.cpp:44:6:44:16 | ... <= ... | Check the comparison operator precedence. |
5-
| test.cpp:45:6:45:16 | ... <= ... | Check the comparison operator precedence. |
6-
| test.cpp:46:6:46:14 | ... > ... | Check the comparison operator precedence. |
7-
| test.cpp:50:6:50:32 | ... < ... | Check the comparison operator precedence. |
8-
| test.cpp:51:6:51:18 | ... < ... | Check the comparison operator precedence. |
9-
| test.cpp:54:8:54:16 | ... < ... | Check the comparison operator precedence. |
1+
| template.cpp:4:7:4:15 | ... < ... | Comparison as an operand to another comparison. |
2+
| test.cpp:42:6:42:14 | ... < ... | Comparison as an operand to another comparison. |
3+
| test.cpp:43:6:43:14 | ... > ... | Comparison as an operand to another comparison. |
4+
| test.cpp:44:6:44:16 | ... <= ... | Comparison as an operand to another comparison. |
5+
| test.cpp:45:6:45:16 | ... <= ... | Comparison as an operand to another comparison. |
6+
| test.cpp:46:6:46:14 | ... > ... | Comparison as an operand to another comparison. |
7+
| test.cpp:50:6:50:32 | ... < ... | Comparison as an operand to another comparison. |
8+
| test.cpp:51:6:51:18 | ... < ... | Comparison as an operand to another comparison. |
9+
| test.cpp:54:8:54:16 | ... < ... | Comparison as an operand to another comparison. |

0 commit comments

Comments
 (0)