Skip to content

Commit db09ca7

Browse files
committed
Update queries + outdated note
1 parent bb05db5 commit db09ca7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/language/learn-ql/cpp/basic-query-cpp.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Running the query
3636
import cpp
3737
3838
from IfStmt ifstmt, Block block
39-
where ifstmt.getThen() = block
40-
and block.getNumStmt() = 0
39+
where ifstmt.getThen() = block and
40+
block.getNumStmt() = 0
4141
select ifstmt, "This 'if' statement is redundant."
4242
4343
LGTM checks whether your query compiles and, if all is well, the **Run** button changes to green to indicate that you can go ahead and run the query.
@@ -57,13 +57,13 @@ Running the query
5757

5858
The query will take a few moments to return results. When the query completes, the results are displayed below the project name. The query results are listed in two columns, corresponding to the two expressions in the ``select`` clause of the query. The first column corresponds to the expression ``ifstmt`` and is linked to the location in the source code of the project where ``ifstmt`` occurs. The second column is the alert message.
5959

60-
➤ `Example query results <https://lgtm.com/query/1505896936425/>`__
60+
➤ `Example query results <https://lgtm.com/query/4242591143131494898/>`__
6161

6262
.. pull-quote::
6363

6464
Note
6565

66-
An arrow (˅) at the bottom of the table indicates that more results are available. Click the arrow to display more results.
66+
An ellipsis (…) at the bottom of the table indicates that the entire list is not displayed–click it to show more results.
6767

6868
#. If any matching code is found, click a link in the ``ifstmt`` column to view the ``if`` statement in the code viewer.
6969

@@ -136,7 +136,7 @@ To exclude ``if`` statements that have an ``else`` branch:
136136

137137
There are now fewer results because ``if`` statements with an ``else`` branch are no longer reported.
138138

139-
➤ `See this in the query console <https://lgtm.com/query/1505895837823/>`__
139+
➤ `See this in the query console <https://lgtm.com/query/1899933116489579248/>`__
140140

141141
Further reading
142142
---------------

0 commit comments

Comments
 (0)