Skip to content

Index

Repository

Source and sample code is available here: https://github.com/v-p-b/codeql-cheat-sheet

PR's welcome!

Project Layout

Without the VSCode Starter Project

Initialize the official CodeQL repository as a submodule in your project directory:

git submodule add https://github.com/github/codeql.git ql

Add qlpack.yml next to your .ql files:

name: codeql-cheat-sheet-cpp
version: 0.0.1
libraryPathDependencies: codeql-cpp

Add queries.xml next to yout .ql files:

<queries language="cpp"/>