Skip to content

Overlay: Add overlay annotations to Java & shared libraries #19779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: kaspersv/overlay-annotations-script
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions csharp/ql/lib/semmle/code/csharp/dataflow/Bound.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes for representing abstract bounds for use in, for example, range analysis.
*/
overlay[local?]
module;

private import internal.rangeanalysis.BoundSpecific

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* an expression, `b` is a `Bound` (typically zero or the value of an SSA
* variable), and `v` is an integer in the range `[0 .. m-1]`.
*/
overlay[local?]
module;

private import internal.rangeanalysis.ModulusAnalysisSpecific::Private
private import Bound
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
overlay[local?]
module;

newtype TSign =
TNeg() or
TZero() or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* The analysis is implemented as an abstract interpretation over the
* three-valued domain `{negative, zero, positive}`.
*/
overlay[local?]
module;

private import SignAnalysisSpecific::Private
private import SsaReadPositionCommon
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes for representing a position at which an SSA variable is read.
*/
overlay[local?]
module;

private import SsaReadPositionSpecific
import SsaReadPositionSpecific::Public
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/Customizations.qll
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
* the `RemoteFlowSource` and `AdditionalTaintStep` classes associated with the security queries
* to model frameworks that are not covered by the standard library.
*/
overlay[local?]
module;

import java
2 changes: 2 additions & 0 deletions java/ql/lib/IDEContextual.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides shared predicates related to contextual queries in the code viewer.
*/
overlay[local?]
module;

import semmle.files.FileSystem
private import codeql.util.FileSystem
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/default.qll
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** DEPRECATED: use `java.qll` instead. */
overlay[local?]
module;

import java
2 changes: 2 additions & 0 deletions java/ql/lib/definitions.qll
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Provides classes and predicates related to jump-to-definition links
* in the code viewer.
*/
overlay[local?]
module;

import java
import IDEContextual
Expand Down
3 changes: 3 additions & 0 deletions java/ql/lib/experimental/quantum/JCA.qll
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
overlay[local?]
module;

import java
import semmle.code.java.dataflow.DataFlow
import semmle.code.java.dataflow.TaintTracking
Expand Down
3 changes: 3 additions & 0 deletions java/ql/lib/experimental/quantum/Language.qll
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
overlay[local?]
module;

private import java as Language
private import semmle.code.java.security.InsecureRandomnessQuery
private import semmle.code.java.security.RandomQuery
Expand Down
3 changes: 3 additions & 0 deletions java/ql/lib/external/ExternalArtifact.qll
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
overlay[local?]
module;

import java

class ExternalData extends @externalDataElement {
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/java.qll
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** Provides all default Java QL imports. */
overlay[local?]
module;

import Customizations
import semmle.code.FileSystem
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/FileSystem.qll
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** Provides classes for working with files and folders. */
overlay[local?]
module;

import Location
private import codeql.util.FileSystem
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/Location.qll
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*
* Locations represent parts of files and are used to map elements to their source location.
*/
overlay[local?]
module;

import FileSystem
import semmle.code.java.Element
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/SMAP.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with SMAP files (see JSR-045).
*/
overlay[local?]
module;

import java

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/Unit.qll
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** Provides the `Unit` class. */
overlay[local?]
module;

import codeql.util.Unit
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/configfiles/ConfigFiles.qll
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Provides classes and predicates for working with configuration files, such
* as Java `.properties` or `.ini` files.
*/
overlay[local?]
module;

import semmle.code.Location

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Annotation.qll
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* Each annotation type has zero or more annotation elements that contain a
* name and possibly a value.
*/
overlay[local?]
module;

import Element
import Expr
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Collections.qll
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Provides classes and predicates for reasoning about instances of
* `java.util.Collection` and their methods.
*/
overlay[local?]
module;

import java

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Compilation.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides a class representing individual compiler invocations that occurred during the build.
*/
overlay[local?]
module;

import semmle.code.FileSystem

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/CompilationUnit.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with Java compilation units.
*/
overlay[local?]
module;

import Element
import Package
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Completion.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for representing completions.
*/
overlay[local?]
module;

/*
* A completion represents how a statement or expression terminates.
Expand Down
3 changes: 3 additions & 0 deletions java/ql/lib/semmle/code/java/Concurrency.qll
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
overlay[local?]
module;

import java

/**
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Constants.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provdides a module to calculate constant integer and boolean values.
*/
overlay[local?]
module;

import java

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/ControlFlowGraph.qll
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* statement, an expression, or an exit node for a callable, indicating that
* execution of the callable terminates.
*/
overlay[local?]
module;

/*
* The implementation is centered around the concept of a _completion_, which
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Conversions.qll
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*
* See the Java Language Specification, Section 5, for details.
*/
overlay[local?]
module;

import java
import semmle.code.java.arithmetic.Overflow
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Dependency.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides utility predicates for representing dependencies between types.
*/
overlay[local?]
module;

import Type
import Generics
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/DependencyCounts.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* This library provides utility predicates for representing the number of dependencies between types.
*/
overlay[local?]
module;

import Type
import Generics
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Diagnostics.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes representing warnings generated during compilation.
*/
overlay[local?]
module;

import java

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Element.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides a class that represents named elements in Java programs.
*/
overlay[local?]
module;

import CompilationUnit
import semmle.code.Location
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Exception.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with Java exceptions.
*/
overlay[local?]
module;

import Element
import Type
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Expr.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes for working with Java expressions.
*/
overlay[local?]
module;

import java
private import semmle.code.java.frameworks.android.Compose
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/GeneratedFiles.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with the most common types of generated files.
*/
overlay[local?]
module;

import Type
private import semmle.code.java.frameworks.JavaxAnnotations
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Generics.qll
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
*
* The terminology for generic methods is analogous.
*/
overlay[local?]
module;

import Type

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Import.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with Java imports.
*/
overlay[local?]
module;

import semmle.code.Location
import CompilationUnit
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/J2EE.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with J2EE bean types.
*/
overlay[local?]
module;

import Type

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/JDK.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with standard classes and methods from the JDK.
*/
overlay[local?]
module;

import Member
import semmle.code.java.security.ExternalProcess
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/JDKAnnotations.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes that represent standard annotations from the JDK.
*/
overlay[local?]
module;

import java

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/JMX.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with JMX bean types.
*/
overlay[local?]
module;

import Type

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Javadoc.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with Javadoc documentation.
*/
overlay[local?]
module;

import semmle.code.Location

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/KotlinType.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with Kotlin types.
*/
overlay[local?]
module;

import java

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Maps.qll
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Provides classes and predicates for reasoning about instances of
* `java.util.Map` and their methods.
*/
overlay[local?]
module;

import java
import Collections
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Member.qll
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Provides classes and predicates for working with members of Java classes and interfaces,
* that is, methods, constructors, fields and nested types.
*/
overlay[local?]
module;

import Element
import Type
Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Modifier.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes and predicates for working with Java modifiers.
*/
overlay[local?]
module;

import Element

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/Modules.qll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Provides classes for working with Java modules.
*/
overlay[local?]
module;

import CompilationUnit

Expand Down
2 changes: 2 additions & 0 deletions java/ql/lib/semmle/code/java/NumberFormatException.qll
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** Provides classes and predicates for reasoning about `java.lang.NumberFormatException`. */
overlay[local?]
module;

import java

Expand Down
Loading