Skip to content

Commit aa7a0e6

Browse files
committed
CPP: Add tags for VS Code jump-to-defition
1 parent 6a41028 commit aa7a0e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cpp/ql/src/localDefinitions.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* for jump-to-definition in the code viewer.
55
* @kind definitions
66
* @id cpp/jump-to-definition
7+
* @tags local-definitions
78
*/
89

910
import definitions

cpp/ql/src/localReferences.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
* for jump-to-definition in the code viewer.
55
* @kind definitions
66
* @id cpp/jump-to-definition
7+
* @tags local-references
78
*/
89

910
import definitions
1011

1112
external string selectedSourceFile();
1213

1314
cached File getEncodedFile(string name) {
14-
result.getAbsolutePath().replaceAll(":", "_") = name
15+
result.getAbsolutePath().replaceAll(":", "_") = name
1516
}
1617

17-
18-
1918
from Top e, Top def, string kind
2019
where def = definitionOf(e, kind) and def.getFile() = getEncodedFile(selectedSourceFile())
2120
select e, def, kind

0 commit comments

Comments
 (0)