mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
With this change, users are now able to run View AST command in vscode within vscode workspaces that do not include the core libraries. The relevant core library only needs to be installed in the package cache.
18 lines
493 B
Plaintext
18 lines
493 B
Plaintext
/**
|
|
* @name Find-references links
|
|
* @description Generates use-definition pairs that provide the data
|
|
* for find-references in the code viewer of VSCode.
|
|
* @kind definitions
|
|
* @id cpp/ide-find-references
|
|
* @tags ide-contextual-queries/local-references
|
|
*/
|
|
|
|
import definitions
|
|
|
|
external string selectedSourceFile();
|
|
|
|
from Top e, Top def, string kind
|
|
where
|
|
def = definitionOf(e, kind) and def.getFile() = getFileBySourceArchiveName(selectedSourceFile())
|
|
select e, def, kind
|