CPP: Add tags for VS Code jump-to-defition

This commit is contained in:
Jason Reed
2020-04-13 08:53:40 -04:00
parent 6a41028d3a
commit aa7a0e6879
2 changed files with 3 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
* for jump-to-definition in the code viewer.
* @kind definitions
* @id cpp/jump-to-definition
* @tags local-definitions
*/
import definitions

View File

@@ -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