Skip to content

Commit 73c29ec

Browse files
authored
Merge pull request github#3346 from jf205/sd-48
Learn CodeQL docs: add note about path queries to data flow tutorials
2 parents 38ebb81 + 5e87bc9 commit 73c29ec

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

docs/language/learn-ql/cpp/dataflow.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ Global data flow
139139

140140
Global data flow tracks data flow throughout the entire program, and is therefore more powerful than local data flow. However, global data flow is less precise than local data flow, and the analysis typically requires significantly more time and memory to perform.
141141

142+
.. pull-quote:: Note
143+
144+
.. include:: ../../reusables/path-problem.rst
145+
142146
Using global data flow
143147
~~~~~~~~~~~~~~~~~~~~~~
144148

docs/language/learn-ql/csharp/dataflow.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ Global data flow
137137

138138
Global data flow tracks data flow throughout the entire program, and is therefore more powerful than local data flow. However, global data flow is less precise than local data flow, and the analysis typically requires significantly more time and memory to perform.
139139

140+
.. pull-quote:: Note
141+
142+
.. include:: ../../reusables/path-problem.rst
143+
140144
Using global data flow
141145
~~~~~~~~~~~~~~~~~~~~~~
142146

docs/language/learn-ql/java/dataflow.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ Global data flow
147147

148148
Global data flow tracks data flow throughout the entire program, and is therefore more powerful than local data flow. However, global data flow is less precise than local data flow, and the analysis typically requires significantly more time and memory to perform.
149149

150+
.. pull-quote:: Note
151+
152+
.. include:: ../../reusables/path-problem.rst
153+
150154
Using global data flow
151155
~~~~~~~~~~~~~~~~~~~~~~
152156

docs/language/learn-ql/javascript/dataflow.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ Global data flow tracks data flow throughout the entire program, and is therefor
188188
than local data flow. That is, the analysis may report spurious flows that cannot in fact happen. Moreover, global data flow analysis typically requires significantly
189189
more time and memory than local analysis.
190190

191+
.. pull-quote:: Note
192+
193+
.. include:: ../../reusables/path-problem.rst
194+
191195
Using global data flow
192196
~~~~~~~~~~~~~~~~~~~~~~
193197

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
You can model data flow paths in CodeQL by creating path queries. To view data flow paths generated by a path query in CodeQL for VS Code, you need to make sure that it has the correct metadata and ``select`` clause. For more information, see `Creating path queries <https://help.semmle.com/QL/learn-ql/writing-queries/path-queries.html>`__.

0 commit comments

Comments
 (0)