We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16683ae commit 95681bfCopy full SHA for 95681bf
rust/ql/lib/codeql/files/FileSystem.qll
@@ -45,13 +45,16 @@ extensible predicate additionalExternalFile(string relativePath);
45
46
/** A file. */
47
class File extends Container, Impl::File {
48
+ pragma[nomagic]
49
+ private string getRelativePath0() { result = this.getRelativePath() }
50
+
51
/**
52
* Holds if this file was extracted from the source code of the target project
53
* (rather than another location such as inside a dependency).
54
*/
55
predicate fromSource() {
56
exists(ExtractorStep s | s.getAction() = "Extract" and s.getFile() = this) and
- not additionalExternalFile(this.getRelativePath())
57
+ not additionalExternalFile(this.getRelativePath0())
58
}
59
60
0 commit comments