Skip to content

Commit 6fdc602

Browse files
committed
Add pragma[nomagic] to hasBuildConstraints
1 parent 4b095f3 commit 6fdc602

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

go/ql/lib/semmle/go/Files.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class ExtractedOrExternalFile extends Container, Impl::File, Documentable, ExprP
6969

7070
/** Holds if this file contains at least one build constraint. */
7171
pragma[noinline]
72+
pragma[nomagic]
7273
predicate hasBuildConstraints() { exists(BuildConstraintComment bc | this = bc.getFile()) }
7374

7475
/**

0 commit comments

Comments
 (0)