Skip to content

Commit df1e8e2

Browse files
authored
Merge pull request github#13854 from github/11185-add-note
CodeQL library update to use modular API interface - Add note and include in articles
2 parents 1c64fb1 + 46f80dc commit df1e8e2

9 files changed

+18
-2
lines changed

docs/codeql/codeql-language-guides/analyzing-data-flow-in-cpp-new.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.. pull-quote:: Note
44

5-
The data flow library described here is available from CodeQL 2.12.5 onwards. For information on the previous version of the library, see :ref:`Analyzing data flow in C and C++ <analyzing-data-flow-in-cpp>`.
5+
The data flow library described here is available from CodeQL 2.12.5 onwards. With the release of CodeQL 2.13.0 the library uses the new modular API for data flow. For information on the previous version of the library, see :ref:`Analyzing data flow in C and C++ <analyzing-data-flow-in-cpp>` and for information about the new modular API and how to migrate any existing queries to the updated data flow library, see `New dataflow API for CodeQL query writing <https://gh.io/codeql-new-dataflow-api>`__.
66

77
Analyzing data flow in C and C++ (new)
88
======================================

docs/codeql/codeql-language-guides/analyzing-data-flow-in-cpp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.. pull-quote:: Note
44

5-
The data flow library used in this article has been replaced with an improved library which is available from CodeQL 2.12.5 onwards, see :ref:`Analyzing data flow in C and C++ (new) <analyzing-data-flow-in-cpp-new>`. The old library has been deprecated in CodeQL 2.14.1 and will be removed in a later release.
5+
The data flow library used in this article has been replaced with an improved library which is available from CodeQL 2.12.5 onwards, see :ref:`Analyzing data flow in C and C++ (new) <analyzing-data-flow-in-cpp-new>`. The old library has been deprecated in CodeQL 2.14.1 and will be removed in a later release. With the release of CodeQL 2.13.0 both libraries use the new modular API for data flow.
66

77
Analyzing data flow in C and C++
88
================================

docs/codeql/codeql-language-guides/analyzing-data-flow-in-csharp.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This article describes how data flow analysis is implemented in the CodeQL libra
1212
The following sections describe how to use the libraries for local data flow, global data flow, and taint tracking.
1313
For a more general introduction to modeling data flow, see ":ref:`About data flow analysis <about-data-flow-analysis>`."
1414

15+
.. include:: ../reusables/new-data-flow-api.rst
16+
1517
Local data flow
1618
---------------
1719

docs/codeql/codeql-language-guides/analyzing-data-flow-in-java.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ The following sections describe how to use the libraries for local data flow, gl
1717

1818
For a more general introduction to modeling data flow, see ":ref:`About data flow analysis <about-data-flow-analysis>`."
1919

20+
.. include:: ../reusables/new-data-flow-api.rst
21+
2022
Local data flow
2123
---------------
2224

docs/codeql/codeql-language-guides/analyzing-data-flow-in-python.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This article describes how data flow analysis is implemented in the CodeQL libra
1212
The following sections describe how to use the libraries for local data flow, global data flow, and taint tracking.
1313
For a more general introduction to modeling data flow, see ":ref:`About data flow analysis <about-data-flow-analysis>`."
1414

15+
.. include:: ../reusables/new-data-flow-api.rst
16+
1517
Local data flow
1618
---------------
1719

docs/codeql/codeql-language-guides/analyzing-data-flow-in-ruby.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This article describes how data flow analysis is implemented in the CodeQL libra
1212
The following sections describe how to use the libraries for local data flow, global data flow, and taint tracking.
1313
For a more general introduction to modeling data flow, see ":ref:`About data flow analysis <about-data-flow-analysis>`."
1414

15+
.. include:: ../reusables/new-data-flow-api.rst
16+
1517
Local data flow
1618
---------------
1719

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. pull-quote:: Note
2+
3+
The new modular API for data flow described here is available alongside the previous library from CodeQL 2.13.0 onwards. For information about how the library has changed and how to migrate any existing queries to the modular API, see `New dataflow API for CodeQL query writing <https://gh.io/codeql-new-dataflow-api>`__.
4+

docs/codeql/writing-codeql-queries/creating-path-queries.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Creating path queries
55

66
You can create path queries to visualize the flow of information through a codebase.
77

8+
.. include:: ../reusables/new-data-flow-api.rst
9+
810
Overview
911
========
1012

docs/codeql/writing-codeql-queries/debugging-data-flow-queries-using-partial-flow.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Debugging data-flow queries using partial flow
44
==============================================
55

6+
.. include:: ../reusables/new-data-flow-api.rst
7+
68
If a data-flow query doesn't produce the results you expect to see, you can use partial flow to debug the problem.
79

810
In CodeQL, you can use :ref:`data flow analysis <about-data-flow-analysis>` to compute the possible values that a variable can hold at various points in a program.

0 commit comments

Comments
 (0)