Files
codeql/swift/ql/test/extractor-tests/generated/File/File.ql
Paolo Tranquilli a131966066 Swift: make SuccessfullyExtractedFiles.ql more precise
This is done by adding a `isSuccessfullyExtracted` predicate that is
filled for primary files at the very end of the extractor invocation if
the frontend was performed successfully. If for example the extractor
crashes this will therefore not be filled.

The upgrade script is written so that `SuccessfullyExtractedFiles.ql`
on an upgraded script will give exactly the same results as before it.
2023-03-20 08:34:34 +01:00

15 lines
440 B
Plaintext
Generated

// generated by codegen/codegen.py
import codeql.swift.elements
import TestUtils
from File x, string getName, string isSuccessfullyExtracted
where
toBeTested(x) and
not x.isUnknown() and
getName = x.getName() and
if x.isSuccessfullyExtracted()
then isSuccessfullyExtracted = "yes"
else isSuccessfullyExtracted = "no"
select x, x.getPrimaryQlClasses(), "getName:", getName, "isSuccessfullyExtracted:",
isSuccessfullyExtracted