Skip to content

Commit 2234d66

Browse files
aschackmullyo-h
authored andcommitted
Add manual magic
1 parent 9bb949a commit 2234d66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ private predicate smap(File inputFile, int inLine, File outputFile, int outLineS
2727
* Holds if there exists a mapping between an SMAP input file and line
2828
* and a corresponding SMAP output file and line.
2929
*/
30+
pragma[nomagic]
3031
private predicate smap(File inputFile, int inLine, File outputFile, int outLine) {
3132
exists(int outLineStart, int outLineEnd |
3233
smap(inputFile, inLine, outputFile, outLineStart, outLineEnd) and
@@ -47,6 +48,7 @@ predicate hasSmapLocationInfo(
4748
exists(File inputFile, File outputFile |
4849
inputPath = inputFile.getAbsolutePath() and
4950
outputPath = outputFile.getAbsolutePath() and
51+
locations_default(_, outputFile, osl, _, oel, _) and
5052
smap(inputFile, isl, outputFile, osl) and
5153
smap(inputFile, iel - 1, outputFile, oel) and
5254
isc = 1 and

0 commit comments

Comments
 (0)