forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPathResolutionConsistency.ql
More file actions
28 lines (23 loc) · 966 Bytes
/
PathResolutionConsistency.ql
File metadata and controls
28 lines (23 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* @name Path resolution inconsistencies
* @description Lists the path resolution inconsistencies in the database. This query is intended for internal use.
* @kind table
* @id rust/diagnostics/path-resolution-consistency
*/
private import rust
private import codeql.rust.internal.PathResolution
private import codeql.rust.internal.PathResolutionConsistency as PathResolutionConsistency
private import codeql.rust.elements.Locatable
private import codeql.Locations
class SourceLocatable extends Locatable {
SourceLocatable() { this.fromSource() }
}
query predicate multipleResolvedTargets(SourceLocatable a) {
PathResolutionConsistency::multipleResolvedTargets(a, _)
}
query predicate multiplePathResolutions(SourceLocatable a) {
PathResolutionConsistency::multiplePathResolutions(a, _)
}
query predicate multipleCanonicalPaths(SourceLocatable i, SourceLocatable c, string path) {
PathResolutionConsistency::multipleCanonicalPaths(i, c, path)
}