Skip to content

Commit 93fc287

Browse files
committed
java: add auto-generated overlay annotations
1 parent a1671ea commit 93fc287

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Provides classes and predicates for detecting conflicting accesses in the sense of the Java Memory Model.
33
*/
4+
overlay[local?]
5+
module;
46

57
import java
68
import Concurrency
@@ -9,6 +11,7 @@ import Concurrency
911
* Holds if `t` is the type of a lock.
1012
* Currently a crude test of the type name.
1113
*/
14+
overlay[caller?]
1215
pragma[inline]
1316
predicate isLockType(Type t) { t.getName().matches("%Lock%") }
1417

@@ -208,6 +211,7 @@ class ExposedFieldAccess extends FieldAccess {
208211
}
209212

210213
/** Holds if the location of `a` is strictly before the location of `b`. */
214+
overlay[caller?]
211215
pragma[inline]
212216
predicate orderedLocations(Location a, Location b) {
213217
a.getStartLine() < b.getStartLine()

0 commit comments

Comments
 (0)