mirror of
https://github.com/github/codeql.git
synced 2026-01-29 14:23:03 +01:00
Add pragma to prevent accidental inlining.
This commit is contained in:
@@ -33,6 +33,7 @@ Location getLocation(CommentGroup cg) {
|
||||
not exists(cg.getLocation()) and result = cg.getComment(0).getLocation()
|
||||
}
|
||||
|
||||
pragma[noinline]
|
||||
predicate hasLocation(CommentGroup cg, File f, int startLine) {
|
||||
exists(Location loc | loc = getLocation(cg) |
|
||||
f = loc.getFile() and
|
||||
|
||||
Reference in New Issue
Block a user