Overlay: Add overlay annotations to Java & shared libraries

This commit is contained in:
Kasper Svendsen
2025-06-16 13:06:31 +02:00
parent 2218a981f6
commit c207cfdeb7
428 changed files with 966 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
* Provides the `restrictAlertsTo` extensible predicate to restrict alerts to specific source
* locations, and the `AlertFilteringImpl` parameterized module to apply the filtering.
*/
overlay[local?]
module;
private import codeql.util.Location

View File

@@ -1,4 +1,6 @@
/** Provides the `Boolean` class. */
overlay[local?]
module;
/**
* A utility class that is equivalent to `boolean`.

View File

@@ -2,6 +2,8 @@
* Provides modules for computing dense `rank`s. See the `DenseRank` module
* below for a more detailed explanation.
*/
overlay[local?]
module;
/** Provides the input to `DenseRank`. */
signature module DenseRankInputSig {

View File

@@ -1,4 +1,6 @@
/** Provides a module for constructing a union `Either` type. */
overlay[local?]
module;
/** A type with `toString`. */
private signature class TypeWithToString {

View File

@@ -1,4 +1,6 @@
/** Provides a utility for normalizing filepaths. */
overlay[local?]
module;
/**
* A filepath that should be normalized.

View File

@@ -1,4 +1,6 @@
/** Provides classes for working with files and folders. */
overlay[local?]
module;
/** Provides the input specification of the files and folders implementation. */
signature module InputSig {

View File

@@ -1,4 +1,6 @@
/** Provides classes for working with locations. */
overlay[local?]
module;
/**
* A location as given by a file, a start line, a start column,

View File

@@ -2,6 +2,8 @@
* Provides predicates for working with numeric values and their string
* representations.
*/
overlay[local?]
module;
/**
* Gets the integer value of `binary` when interpreted as binary. `binary` must

View File

@@ -1,4 +1,6 @@
/** Provides a module for constructing optional versions of types. */
overlay[local?]
module;
/** A type with `toString`. */
private signature class TypeWithToString {

View File

@@ -1,6 +1,7 @@
/**
* Provides the `ReportStats` module for reporting database quality statistics.
*/
overlay[local?]
module;
signature module StatsSig {

View File

@@ -1,3 +1,6 @@
overlay[local?]
module;
private import Numbers
/**

View File

@@ -1,4 +1,6 @@
/** Provides the `Unit` class. */
overlay[local?]
module;
/** The unit type. */
private newtype TUnit = TMkUnit()

View File

@@ -1,4 +1,6 @@
/** Provides the empty `Void` class. */
overlay[local?]
module;
/** The empty void type. */
private newtype TVoid = TMkVoid() { none() }

View File

@@ -1,3 +1,6 @@
overlay[local?]
module;
signature class AstNode {
predicate hasLocationInfo(
string filepath, int startline, int startcolumn, int endline, int endcolumn

View File

@@ -6,6 +6,7 @@
* VS Code, but prevents the "Location is outside of test directory" warning
* when executed through `codeql test run`.
*/
overlay[local?]
module;
external private predicate queryResults(string relation, int row, int column, string data);