Skip to content

Commit bceb147

Browse files
committed
Overlay: Add overlay annotations to Java & shared libraries
1 parent ed8b787 commit bceb147

File tree

428 files changed

+966
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

428 files changed

+966
-0
lines changed

java/ql/lib/Customizations.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
* the `RemoteFlowSource` and `AdditionalTaintStep` classes associated with the security queries
99
* to model frameworks that are not covered by the standard library.
1010
*/
11+
overlay[local?]
12+
module;
1113

1214
import java

java/ql/lib/IDEContextual.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides shared predicates related to contextual queries in the code viewer.
33
*/
4+
overlay[local?]
5+
module;
46

57
import semmle.files.FileSystem
68
private import codeql.util.FileSystem

java/ql/lib/default.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/** DEPRECATED: use `java.qll` instead. */
2+
overlay[local?]
3+
module;
24

35
import java

java/ql/lib/definitions.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Provides classes and predicates related to jump-to-definition links
33
* in the code viewer.
44
*/
5+
overlay[local?]
6+
module;
57

68
import java
79
import IDEContextual

java/ql/lib/experimental/quantum/JCA.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
overlay[local?]
2+
module;
3+
14
import java
25
import semmle.code.java.dataflow.DataFlow
36
import semmle.code.java.dataflow.TaintTracking

java/ql/lib/experimental/quantum/Language.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
overlay[local?]
2+
module;
3+
14
private import java as Language
25
private import semmle.code.java.security.InsecureRandomnessQuery
36
private import semmle.code.java.security.RandomQuery

java/ql/lib/external/ExternalArtifact.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
overlay[local?]
2+
module;
3+
14
import java
25

36
class ExternalData extends @externalDataElement {

java/ql/lib/java.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** Provides all default Java QL imports. */
2+
overlay[local?]
3+
module;
24

35
import Customizations
46
import semmle.code.FileSystem

java/ql/lib/semmle/code/FileSystem.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** Provides classes for working with files and folders. */
2+
overlay[local?]
3+
module;
24

35
import Location
46
private import codeql.util.FileSystem

java/ql/lib/semmle/code/Location.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
*
44
* Locations represent parts of files and are used to map elements to their source location.
55
*/
6+
overlay[local?]
7+
module;
68

79
import FileSystem
810
import semmle.code.java.Element

java/ql/lib/semmle/code/SMAP.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with SMAP files (see JSR-045).
33
*/
4+
overlay[local?]
5+
module;
46

57
import java
68

java/ql/lib/semmle/code/Unit.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/** Provides the `Unit` class. */
2+
overlay[local?]
3+
module;
24

35
import codeql.util.Unit

java/ql/lib/semmle/code/configfiles/ConfigFiles.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Provides classes and predicates for working with configuration files, such
33
* as Java `.properties` or `.ini` files.
44
*/
5+
overlay[local?]
6+
module;
57

68
import semmle.code.Location
79

java/ql/lib/semmle/code/java/Annotation.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Each annotation type has zero or more annotation elements that contain a
99
* name and possibly a value.
1010
*/
11+
overlay[local?]
12+
module;
1113

1214
import Element
1315
import Expr

java/ql/lib/semmle/code/java/Collections.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Provides classes and predicates for reasoning about instances of
33
* `java.util.Collection` and their methods.
44
*/
5+
overlay[local?]
6+
module;
57

68
import java
79

java/ql/lib/semmle/code/java/Compilation.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides a class representing individual compiler invocations that occurred during the build.
33
*/
4+
overlay[local?]
5+
module;
46

57
import semmle.code.FileSystem
68

java/ql/lib/semmle/code/java/CompilationUnit.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with Java compilation units.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Element
68
import Package

java/ql/lib/semmle/code/java/Completion.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for representing completions.
33
*/
4+
overlay[local?]
5+
module;
46

57
/*
68
* A completion represents how a statement or expression terminates.

java/ql/lib/semmle/code/java/Concurrency.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
overlay[local?]
2+
module;
3+
14
import java
25

36
/**

java/ql/lib/semmle/code/java/Constants.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provdides a module to calculate constant integer and boolean values.
33
*/
4+
overlay[local?]
5+
module;
46

57
import java
68

java/ql/lib/semmle/code/java/ControlFlowGraph.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* statement, an expression, or an exit node for a callable, indicating that
88
* execution of the callable terminates.
99
*/
10+
overlay[local?]
11+
module;
1012

1113
/*
1214
* The implementation is centered around the concept of a _completion_, which

java/ql/lib/semmle/code/java/Conversions.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*
55
* See the Java Language Specification, Section 5, for details.
66
*/
7+
overlay[local?]
8+
module;
79

810
import java
911
import semmle.code.java.arithmetic.Overflow

java/ql/lib/semmle/code/java/Dependency.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides utility predicates for representing dependencies between types.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Type
68
import Generics

java/ql/lib/semmle/code/java/DependencyCounts.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* This library provides utility predicates for representing the number of dependencies between types.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Type
68
import Generics

java/ql/lib/semmle/code/java/Diagnostics.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes representing warnings generated during compilation.
33
*/
4+
overlay[local?]
5+
module;
46

57
import java
68

java/ql/lib/semmle/code/java/Element.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides a class that represents named elements in Java programs.
33
*/
4+
overlay[local?]
5+
module;
46

57
import CompilationUnit
68
import semmle.code.Location

java/ql/lib/semmle/code/java/Exception.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with Java exceptions.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Element
68
import Type

java/ql/lib/semmle/code/java/Expr.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes for working with Java expressions.
33
*/
4+
overlay[local?]
5+
module;
46

57
import java
68
private import semmle.code.java.frameworks.android.Compose

java/ql/lib/semmle/code/java/GeneratedFiles.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with the most common types of generated files.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Type
68
private import semmle.code.java.frameworks.JavaxAnnotations

java/ql/lib/semmle/code/java/Generics.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
*
3131
* The terminology for generic methods is analogous.
3232
*/
33+
overlay[local?]
34+
module;
3335

3436
import Type
3537

java/ql/lib/semmle/code/java/Import.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with Java imports.
33
*/
4+
overlay[local?]
5+
module;
46

57
import semmle.code.Location
68
import CompilationUnit

java/ql/lib/semmle/code/java/J2EE.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with J2EE bean types.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Type
68

java/ql/lib/semmle/code/java/JDK.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with standard classes and methods from the JDK.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Member
68
import semmle.code.java.security.ExternalProcess

java/ql/lib/semmle/code/java/JDKAnnotations.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes that represent standard annotations from the JDK.
33
*/
4+
overlay[local?]
5+
module;
46

57
import java
68

java/ql/lib/semmle/code/java/JMX.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with JMX bean types.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Type
68

java/ql/lib/semmle/code/java/Javadoc.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with Javadoc documentation.
33
*/
4+
overlay[local?]
5+
module;
46

57
import semmle.code.Location
68

java/ql/lib/semmle/code/java/KotlinType.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with Kotlin types.
33
*/
4+
overlay[local?]
5+
module;
46

57
import java
68

java/ql/lib/semmle/code/java/Maps.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Provides classes and predicates for reasoning about instances of
33
* `java.util.Map` and their methods.
44
*/
5+
overlay[local?]
6+
module;
57

68
import java
79
import Collections

java/ql/lib/semmle/code/java/Member.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Provides classes and predicates for working with members of Java classes and interfaces,
33
* that is, methods, constructors, fields and nested types.
44
*/
5+
overlay[local?]
6+
module;
57

68
import Element
79
import Type

java/ql/lib/semmle/code/java/Modifier.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with Java modifiers.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Element
68

java/ql/lib/semmle/code/java/Modules.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes for working with Java modules.
33
*/
4+
overlay[local?]
5+
module;
46

57
import CompilationUnit
68

java/ql/lib/semmle/code/java/NumberFormatException.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** Provides classes and predicates for reasoning about `java.lang.NumberFormatException`. */
2+
overlay[local?]
3+
module;
24

35
import java
46

java/ql/lib/semmle/code/java/Package.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with Java packages.
33
*/
4+
overlay[local?]
5+
module;
46

57
import Element
68
import Type

java/ql/lib/semmle/code/java/PrettyPrintAst.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Provides pretty-printed representations of the AST, in particular top-level
33
* classes and interfaces.
44
*/
5+
overlay[local?]
6+
module;
57

68
import java
79

java/ql/lib/semmle/code/java/PrintAst.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* extend `PrintAstConfiguration` and override `shouldPrint` to hold for only the elements
66
* you wish to view the AST for.
77
*/
8+
overlay[local?]
9+
module;
810

911
import java
1012
import semmle.code.java.regex.RegexTreeView as RegexTreeView

java/ql/lib/semmle/code/java/Reflection.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for working with Java Reflection.
33
*/
4+
overlay[local?]
5+
module;
46

57
import java
68
import JDKAnnotations

0 commit comments

Comments
 (0)