mirror of
https://github.com/github/codeql.git
synced 2026-02-10 12:11:07 +01:00
address review comments
This commit is contained in:
@@ -26,4 +26,4 @@ CodeQL queries are used in code scanning analyses to find problems in source cod
|
||||
- :doc:`About data flow analysis <about-data-flow-analysis>`: Data flow analysis is used to compute the possible values that a variable can hold at various points in a program, determining how those values propagate through the program and where they are used.
|
||||
- :doc:`Creating path queries <creating-path-queries>`: You can create path queries to visualize the flow of information through a codebase.
|
||||
- :doc:`Troubleshooting query performance <troubleshooting-query-performance>`: Improve the performance of your CodeQL queries by following a few simple guidelines.
|
||||
- :doc:`Debugging data-flow queries using partial flow <debugging-data-flow-queries-using-partial-flow>`: If a data-flow query unexpectedly produces no results, you can use partial flow to debug the problem.
|
||||
- :doc:`Debugging data-flow queries using partial flow <debugging-data-flow-queries-using-partial-flow>`: If a data-flow query doesn't produce the results you expect to see, you can use partial flow to debug the problem..
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
Debugging data-flow queries using partial flow
|
||||
==============================================
|
||||
|
||||
If a data-flow query unexpectedly produces no results, you can use partial flow to debug the problem.
|
||||
If a data-flow query doesn't produce the results you expect to see, you can use partial flow to debug the problem.
|
||||
|
||||
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.
|
||||
A typical data-flow query looks like this:
|
||||
@@ -32,7 +32,7 @@ Or slightly simpler without path explanations:
|
||||
where config.hasPath(source, sink)
|
||||
select sink, "Sink is reached from $@.", source.getNode(), "here"
|
||||
|
||||
If a data-flow query that you have written does not produce any results when you expect it to, there may be a problem with your query.
|
||||
If a data-flow query that you have written doesn't produce the results you expect it to, there may be a problem with your query.
|
||||
You can try to debug the potential problem by following the steps described below.
|
||||
|
||||
Checking sources and sinks
|
||||
|
||||
Reference in New Issue
Block a user