File tree 15 files changed +31
-8
lines changed
swift/ql/integration-tests
autobuilder/xcode-fails-spm-works
15 files changed +31
-8
lines changed Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from File f
4
+ where exists ( f .getRelativePath ( ) ) or f instanceof UnknownFile
4
5
select f
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from File f
4
+ where exists ( f .getRelativePath ( ) ) or f instanceof UnknownFile
4
5
select f
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from File f
4
+ where exists ( f .getRelativePath ( ) ) or f instanceof UnknownFile
4
5
select f
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from File f
4
+ where exists ( f .getRelativePath ( ) ) or f instanceof UnknownFile
4
5
select f
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from ClassDecl d
4
- where d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift"
4
+ where
5
+ d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift" and
6
+ exists ( d .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
5
7
select d
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from Deinitializer d
4
- where d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift"
4
+ where
5
+ d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift" and
6
+ exists ( d .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
5
7
select d
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from EnumDecl d
4
- where d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift"
4
+ where
5
+ d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift" and
6
+ exists ( d .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
5
7
select d
Original file line number Diff line number Diff line change 1
1
import codeql.swift.elements.decl.internal.AccessorOrNamedFunction
2
2
3
3
from AccessorOrNamedFunction f
4
- where f .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift"
4
+ where
5
+ f .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift" and
6
+ exists ( f .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
5
7
select f
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from Initializer d
4
- where d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift"
4
+ where
5
+ d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift" and
6
+ exists ( d .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
5
7
select d
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from ProtocolDecl d
4
- where d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift"
4
+ where
5
+ d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift" and
6
+ exists ( d .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
5
7
select d
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from StructDecl d
4
- where d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift"
4
+ where
5
+ d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift" and
6
+ exists ( d .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
5
7
select d
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from VarDecl d
4
- where d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift"
4
+ where
5
+ d .getLocation ( ) .getFile ( ) .getBaseName ( ) != "Package.swift" and
6
+ exists ( d .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
5
7
select d
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from File f
4
+ where exists ( f .getRelativePath ( ) ) or f instanceof UnknownFile
4
5
select f
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from File f
4
+ where exists ( f .getRelativePath ( ) ) or f instanceof UnknownFile
4
5
select f
Original file line number Diff line number Diff line change 1
1
import swift
2
2
3
3
from File f
4
+ where exists ( f .getRelativePath ( ) ) or f instanceof UnknownFile
4
5
select f
You can’t perform that action at this time.
0 commit comments