.. _codeql-for-swift:

CodeQL for Swift
================

Experiment and learn how to write effective and efficient queries for CodeQL databases generated from Swift codebases.

.. include:: ../reusables/swift-beta-note.rst

.. toctree::
   :hidden:

   basic-query-for-swift-code
   analyzing-data-flow-in-swift

-  :doc:`Basic query for Swift code <basic-query-for-swift-code>`: Learn to write and run a simple CodeQL query.

-  :doc:`Analyzing data flow in Swift <analyzing-data-flow-in-swift>`: You can use CodeQL to track the flow of data through a Swift program to places where the data is used.
