add intros and tweak tocs

This commit is contained in:
james
2020-11-26 15:51:08 +00:00
parent b5626cbb70
commit d38e297ef9
35 changed files with 113 additions and 6 deletions

View File

@@ -5,8 +5,6 @@ CodeQL CLI
.. include:: ../reusables/codeql-cli-overview.rst
See the following links to learn how to get set up and run CodeQL commands:
- :ref:`Using the CodeQL CLI <using-the-codeql-cli>`: Software
developers and security researchers can secure their code using the CodeQL CLI.

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _about-codeql-for-visual-studio-code:
About CodeQL for Visual Studio Code

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _analyzing-your-projects:
Analyzing your projects

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _customizing-settings:
Customizing settings

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _exploring-data-flow-with-path-queries:
Exploring data flow with path queries

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _exploring-the-structure-of-your-source-code:
Exploring the structure of your source code

View File

@@ -5,8 +5,6 @@ CodeQL for Visual Studio Code
The CodeQL extension for Visual Studio Code adds rich language support for CodeQL and allows you to easily find problems in codebases.
See the following help topics for more information:
- :doc:`About CodeQL for Visual Studio Code
<about-codeql-for-visual-studio-code>`: CodeQL for Visual Studio
Code is an extension that lets you write, run, and test CodeQL queries in Visual

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _setting-up-codeql-in-visual-studio-code:
Setting up CodeQL in Visual Studio Code

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _testing-codeql-queries-in-visual-studio-code:
Testing CodeQL queries in Visual Studio Code

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _troubleshooting-codeql-for-visual-studio-code:
Troubleshooting CodeQL for Visual Studio Code

View File

@@ -3,6 +3,8 @@
CodeQL language guides
======================
Experiment and learn how to write effective and efficient queries for CodeQL databases generated from the languages supported in CodeQL analysis.
.. toctree::
codeql-for-cpp/index

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _about-codeql:
About CodeQL

View File

@@ -1,9 +1,11 @@
:tocdepth: 1
.. _codeql-glossary:
CodeQL glossary
===============
An overview of the technical terms and concepts in coCodeQL.
An overview of the technical terms and concepts in CodeQL.
.. _bqrs-file:

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _codeql-tools:
CodeQL tools

View File

@@ -3,8 +3,17 @@
CodeQL overview
===============
- :doc:`About CodeQL <about-codeql>`: CodeQL is the analysis engine used by developers to automate security checks, and by security researchers to perform variant analysis.
- :doc:`Supported languages and frameworks <supported-languages-and-frameworks>`: View the languages, libraries, and frameworks supported in the latest version of CodeQL.
- :doc:`CodeQL tools <codeql-tools>`: GitHub provides the CodeQL command-line interface and CodeQL for Visual Studio Code for performing CodeQL analysis on open source codebases.
- :doc:`CodeQL glossary <codeql-glossary>`: An overview of the technical terms and concepts in CodeQL.
.. toctree::
:maxdepth: 1
:hidden:
about-codeql
supported-languages-and-frameworks

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _supported-languages-and-frameworks:
Supported languages and frameworks

View File

@@ -2,7 +2,8 @@ CodeQL documentation
====================
.. toctree::
:hidden:
:includehidden:
:maxdepth: 3
codeql-overview/index
codeql-for-visual-studio-code/index

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _about-the-ql-language:
About the QL language

View File

@@ -1,4 +1,7 @@
:tocdepth: 1
.. index:: alias
.. _aliases:
Aliases

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _annotations:
Annotations

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _evaluation-of-ql-programs:
Evaluation of QL programs

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _expressions:
Expressions

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _formulas:
Formulas

View File

@@ -5,8 +5,41 @@ QL language reference
Learn all about QL, the powerful query language that underlies the code scanning tool CodeQL.
- :doc:`About the QL language <about-the-ql-language>`: QL is the powerful query language that underlies CodeQL, which is used to analyze code.
- :doc:`Predicates <predicates>`: Predicates are used to describe the logical relations that make up a QL program.
- :doc:`Queries <queries>`: Queries are the output of a QL program. They evaluate to sets of results.
- :doc:`Types <types>`: QL is a statically typed language, so each variable must have a declared type.
- :doc:`Modules <modules>`: Modules provide a way of organizing QL code by grouping together related types, predicates, and other modules.
- :doc:`Aliases <aliases>`: An alias is an alternative name for an existing QL entity.
- :doc:`Variables <variables>`: Variables in QL are used in a similar way to variables in algebra or logic. They represent sets of values, and those values are usually restricted by a formula.
- :doc:`Expressions <expressions>`: An expression evaluates to a set of values and has a type.
- :doc:`Formulas <formulas>`: Formulas define logical relations between the free variables used in expressions.
- :doc:`Annotations <annotations>`: An annotation is a string that you can place directly before the declaration of a QL entity or name.
- :doc:`Recursion <recursion>`: QL provides strong support for recursion. A predicate in QL is said to be recursive if it depends, directly or indirectly, on itself.
- :doc:`Lexical syntax <lexical-syntax>`: The QL syntax includes different kinds of keywords, identifiers, and comments.
- :doc:`Name resolution <name-resolution>`: The QL compiler resolves names to program elements.
- :doc:`Evaluation of QL programs <evaluation-of-ql-programs>`: A QL program is evaluated in a number of different steps.
- :doc:`QL language specification <ql-language-specification>`: A formal specification for the QL language. It provides a comprehensive reference for terminology, syntax, and other technical details about QL.
- :doc:`QLDoc comment specification <qldoc-comment-specification>`: a formal specification for QLDoc comments.
.. toctree::
:maxdepth: 1
:hidden:
about-the-ql-language
predicates

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _lexical-syntax:
Lexical syntax

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _modules:
Modules

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _name-resolution:
Name resolution

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _predicates:
Predicates

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _ql-language-specification:
QL language specification

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. _qldoc-comment-specification:
QLDoc comment specification

View File

@@ -1,4 +1,7 @@
:tocdepth: 1
.. index:: query
.. _queries:
Queries

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. index:: recursion
.. _recursion:

View File

@@ -1,3 +1,5 @@
:tocdepth: 1
.. index:: type
.. _types:

View File

@@ -1,4 +1,7 @@
:tocdepth: 1
.. index:: variable
.. _variables:
Variables

View File

@@ -3,7 +3,14 @@
Writing CodeQL queries
======================
Get to know more about queries and learn some key query-writing skills by solving puzzles.
- :ref:`CodeQL <codeql-queries>`: CodeQL queries are used in code scanning analyses to find problems in source code, including potential security vulnerabilities.
- :ref:`QL tutorials <ql-tutorials>`: Solve puzzles to learn the basics of QL before you analyze code with CodeQL. The tutorials teach you how to write queries and introduce you to key logic concepts along the way.
.. toctree::
:hidden:
ql-tutorials/index
codeql-queries/index