mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
CPP: Add tags for VS Code jump-to-defition
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* for jump-to-definition in the code viewer.
|
||||
* @kind definitions
|
||||
* @id cpp/jump-to-definition
|
||||
* @tags local-definitions
|
||||
*/
|
||||
|
||||
import definitions
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* for jump-to-definition in the code viewer.
|
||||
* @kind definitions
|
||||
* @id cpp/jump-to-definition
|
||||
* @tags local-references
|
||||
*/
|
||||
|
||||
import definitions
|
||||
@@ -11,11 +12,9 @@ import definitions
|
||||
external string selectedSourceFile();
|
||||
|
||||
cached File getEncodedFile(string name) {
|
||||
result.getAbsolutePath().replaceAll(":", "_") = name
|
||||
result.getAbsolutePath().replaceAll(":", "_") = name
|
||||
}
|
||||
|
||||
|
||||
|
||||
from Top e, Top def, string kind
|
||||
where def = definitionOf(e, kind) and def.getFile() = getEncodedFile(selectedSourceFile())
|
||||
select e, def, kind
|
||||
|
||||
Reference in New Issue
Block a user