Skip to content

Commit bc25050

Browse files
authored
Merge pull request github#3227 from felicitymay/update-references
Update some out of date information
2 parents 721e9d5 + c570ebe commit bc25050

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

cpp/ql/src/Options.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* By default they fall back to the reasonable defaults provided in
66
* `DefaultOptions.qll`, but by modifying this file, you can customize
7-
* the standard Semmle analyses to give better results for your project.
7+
* the standard analyses to give better results for your project.
88
*/
99

1010
import cpp

cpp/ql/src/semmle/code/cpp/Compilation.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ private predicate idOf(@compilation x, int y) = equivalenceRelation(id/2)(x, y)
2121
* Three things happen to each file during a compilation:
2222
*
2323
* 1. The file is compiled by a real compiler, such as gcc or VC.
24-
* 2. The file is parsed by Semmle's C++ front-end.
24+
* 2. The file is parsed by the CodeQL C++ front-end.
2525
* 3. The parsed representation is converted to database tables by
26-
* Semmle's extractor.
26+
* the CodeQL extractor.
2727
*
2828
* This class provides CPU and elapsed time information for steps 2 and 3,
2929
* but not for step 1.

cpp/ql/src/semmle/code/cpp/dataflow/RecursionPrevention.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* DEPRECATED: Recursion through `DataFlow::Configuration` is impossible in
3-
* Semmle Core 1.17 and above. There is no need for this module because it's
3+
* any supported tooling. There is no need for this module because it's
44
* impossible to accidentally depend on recursion through
55
* `DataFlow::Configuration` in current releases.
66
*

docs/language/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ examples, see the `template slide deck <https://github.com/Semmle/ql/blob/master
109109
Viewing the current version of the CodeQL documentation
110110
*******************************************************
111111

112-
The documentation for the most recent Semmle release is
112+
The documentation for the most recent release is
113113
published to `help.semmle.com <https://help.semmle.com>`__.
114114
There, you can also find the documentation for the CodeQL CLI,
115115
the CodeQL extension for Visual Studio Code, and LGTM Enterprise.

docs/language/learn-ql/ql-training.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ We recommend that you download `CodeQL for Visual Studio Code <https://help.semm
3232

3333
Information
3434

35-
The presentations listed below are used in CodeQL and variant analysis training sessions run by Semmle engineers.
35+
The presentations listed below are used in CodeQL and variant analysis training sessions run by GitHub engineers.
3636
Therefore, be aware that the slides are designed to be presented by an instructor.
3737
If you are using the slides without an instructor, please use the additional notes to help guide you through the examples.
3838

docs/language/learn-ql/writing-queries/path-queries.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,6 @@ The alert message defined in the final column in the ``select`` statement can be
192192
What next?
193193
**********
194194

195-
- Take a look at the path queries for `C/C++ <https://help.semmle.com/wiki/label/CCPPOBJ/path-problem>`__, `C# <https://help.semmle.com/wiki/label/CSHARP/path-problem>`__, `Java <https://help.semmle.com/wiki/label/java/path-problem>`__, `JavaScript <https://help.semmle.com/wiki/label/js/path-problem>`__, and `Python <https://help.semmle.com/wiki/label/python/path-problem>`__ to see examples of the queries included in the Semmle tools.
195+
- Take a look at the path queries for `C/C++ <https://help.semmle.com/wiki/label/CCPPOBJ/path-problem>`__, `C# <https://help.semmle.com/wiki/label/CSHARP/path-problem>`__, `Java <https://help.semmle.com/wiki/label/java/path-problem>`__, `JavaScript <https://help.semmle.com/wiki/label/js/path-problem>`__, and `Python <https://help.semmle.com/wiki/label/python/path-problem>`__ to see examples of these queries.
196196
- Explore the `query cookbooks <https://help.semmle.com/wiki/display/QL/QL+cookbooks>`__ to see how to access the basic language elements contained in the CodeQL libraries.
197197
- For a full list of resources to help you learn CodeQL, including beginner tutorials and language-specific examples, visit `Learning CodeQL <https://help.semmle.com/QL/learn-ql/>`__.

docs/language/learn-ql/writing-queries/query-help.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Section-level elements are used to group the information in the help file into s
6363
+--------------------+-----------------------------------------+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
6464
| ``section`` | ``title`` Title of the section | Any block element | General-purpose section with a heading defined by the ``title`` attribute. |
6565
+--------------------+-----------------------------------------+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
66-
| ``semmleNotes`` | None | Any block element | Semmle-specific notes about the query. This section is used only for queries that implement a rule defined by a third party. Default heading. |
66+
| ``semmleNotes`` | None | Any block element | Implementation notes about the query. This section is used only for queries that implement a rule defined by a third party. Default heading. |
6767
+--------------------+-----------------------------------------+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
6868

6969
Block elements

docs/language/ql-handbook/annotations.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Compiler pragmas
249249
The following compiler pragmas affect the compilation and optimization of queries. You
250250
should avoid using these annotations unless you experience significant performance issues.
251251

252-
Before adding pragmas to your code, contact Semmle to describe the performance problems.
252+
Before adding pragmas to your code, contact GitHub to describe the performance problems.
253253
That way we can suggest the best solution for your problem, and take it into account when
254254
improving the QL optimizer.
255255

@@ -292,7 +292,7 @@ optimization on a predicate.
292292
This kind of optimization involves taking information from the context of a predicate
293293
:ref:`call <calls>` and pushing it into the body of a predicate. This is usually
294294
beneficial, so you shouldn't use the ``pragma[nomagic]`` annotation unless recommended to do so
295-
by Semmle.
295+
by GitHub.
296296

297297
Note that ``nomagic`` implies ``noinline``.
298298

@@ -303,7 +303,7 @@ The ``pragma[noopt]`` annotation is used to prevent the QL optimizer from optimi
303303
predicate, except when it's absolutely necessary for compilation and evaluation to work.
304304

305305
This is rarely necessary and you should not use the ``pragma[noopt]`` annotation unless
306-
recommended to do so by Semmle, for example, to help resolve performance issues.
306+
recommended to do so by GitHub, for example, to help resolve performance issues.
307307

308308
When you use this annotation, be aware of the following issues:
309309

docs/language/ql-handbook/language.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ For casts between the primitive ``float`` and ``int`` types, the above rule mean
10021002
Postfix casts
10031003
~~~~~~~~~~~~~
10041004

1005-
*Available from Semmle 1.9.4 onward.* A postfix cast is a primary expression followed by a dot and then a class or primitive type in parentheses:
1005+
A postfix cast is a primary expression followed by a dot and then a class or primitive type in parentheses:
10061006

10071007
::
10081008

docs/language/ql-training/slide-snippets/intro-ql-general.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Analysis overview
101101

102102
.. note::
103103

104-
Semmle’s analysis works by extracting a queryable database from your project. For compiled languages, Semmle’s tools observe an ordinary build of the source code. Each time a compiler is invoked to process a source file, a copy of that file is made, and all relevant information about the source code (syntactic data about the abstract syntax tree, semantic data like name binding and type information, data on the operation of the C preprocessor, etc.) is collected. For interpreted languages, the extractor gathers similar information by running directly on the source code. Multi-language code bases are analyzed one language at a time.
104+
CodeQL analysis works by extracting a queryable database from your project. For compiled languages, the tools observe an ordinary build of the source code. Each time a compiler is invoked to process a source file, a copy of that file is made, and all relevant information about the source code (syntactic data about the abstract syntax tree, semantic data like name binding and type information, data on the operation of the C preprocessor, etc.) is collected. For interpreted languages, the extractor gathers similar information by running directly on the source code. Multi-language code bases are analyzed one language at a time.
105105

106106
Once the extraction finishes, all this information is collected into a single `CodeQL database <https://help.semmle.com/QL/learn-ql/database.html>`__, which is then ready to query, possibly on a different machine. A copy of the source files, made at the time the database was created, is also included in the CodeQL database so analysis results can be displayed at the correct ___location in the code. The database schema is (source) language specific.
107107

@@ -129,7 +129,7 @@ QL is:
129129

130130
- All common logic connectives are available, including quantifiers like ``exist``, which can also introduce new variables.
131131
- The language is declarative–the user focuses on stating what they would like to find, and leaves the details of how to evaluate the query to the engine.
132-
- The object-oriented layer allows Semmle to distribute rich standard libraries for program analysis. These model the common AST node types, control flow and name lookup, and define further layers on top–for example control flow or data flow analysis. The `standard CodeQL libraries and queries <https://github.com/semmle/ql>`__ ship as source and can be inspected by the user, and new abstractions are readily defined.
133-
- The database generated by Semmle’s tools is treated as read-only; queries cannot insert new data into it, though they can inspect its contents in various ways.
132+
- The object-oriented layer allows us to develop rich standard libraries for program analysis. These model the common AST node types, control flow and name lookup, and define further layers on top–for example control flow or data flow analysis. The `standard CodeQL libraries and queries <https://github.com/semmle/ql>`__ ship as source and can be inspected by the user, and new abstractions are readily defined.
133+
- The database generated by the CodeQL tools is treated as read-only; queries cannot insert new data into it, though they can inspect its contents in various ways.
134134

135135
You can start writing running queries on open source projects in the `query console <https://lgtm.com/query>`__ on LGTM.com. You can also download CodeQL databases from LGTM.com to query locally, by `running queries in your IDE <https://lgtm.com/help/lgtm/running-queries-ide>`__.

0 commit comments

Comments
 (0)