Skip to content

Commit 09e1f8d

Browse files
committed
Python: Add overlay annotations to AST classes
... and everything else that it depends on.
1 parent 1b51938 commit 09e1f8d

27 files changed

+72
-0
lines changed

python/ql/lib/semmle/python/AstExtended.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 python
25
private import semmle.python.internal.CachedStages
36

python/ql/lib/semmle/python/AstGenerated.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* WARNING: Any modifications to this file will be lost.
44
* Relations can be changed by modifying master.py.
55
*/
6+
overlay[local]
7+
module;
68

79
import python
810

python/ql/lib/semmle/python/Class.qll

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

57
import python
68

python/ql/lib/semmle/python/Comment.qll

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

57
import python
68

python/ql/lib/semmle/python/Comprehensions.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 python
25

36
/** The base class for list, set and dictionary comprehensions, and generator expressions. */

python/ql/lib/semmle/python/Constants.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** Standard builtin types and modules */
2+
overlay[local]
3+
module;
24

35
import python
46

python/ql/lib/semmle/python/Exprs.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 python
25
private import semmle.python.internal.CachedStages
36

python/ql/lib/semmle/python/Files.qll

Lines changed: 3 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 python
46
private import codeql.util.FileSystem
@@ -178,6 +180,7 @@ class Container extends Impl::Container {
178180

179181
override Container getParentContainer() { result = super.getParentContainer() }
180182

183+
overlay[global]
181184
Container getChildContainer(string baseName) {
182185
result = this.getAChildContainer() and
183186
result.getBaseName() = baseName

python/ql/lib/semmle/python/Flow.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 python
25
private import semmle.python.internal.CachedStages
36
private import codeql.controlflow.BasicBlock as BB

python/ql/lib/semmle/python/Function.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 python
25

36
/**

0 commit comments

Comments
 (0)