mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
/**
|
|
* @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
|
|
import PathResolutionConsistency
|
|
|
|
class SourceLocatable extends Locatable {
|
|
Location getLocation() {
|
|
if super.getLocation().fromSource()
|
|
then result = super.getLocation()
|
|
else result instanceof EmptyLocation
|
|
}
|
|
}
|
|
|
|
query predicate multipleMethodCallTargets(SourceLocatable a, SourceLocatable b) {
|
|
PathResolutionConsistency::multipleMethodCallTargets(a, b)
|
|
}
|
|
|
|
query predicate multiplePathResolutions(SourceLocatable a, SourceLocatable b) {
|
|
PathResolutionConsistency::multiplePathResolutions(a, b)
|
|
}
|
|
|
|
query predicate multipleCanonicalPaths(SourceLocatable i, SourceLocatable c, string path) {
|
|
PathResolutionConsistency::multipleCanonicalPaths(i, c, path)
|
|
}
|