aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/codesearch/testdata/query-dir-index-root2
diff options
context:
space:
mode:
authorArtem Metla <ametla@google.com>2026-02-02 15:31:52 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-02-17 17:06:23 +0000
commit39751c2134a039db51aba39640ff82d072213d73 (patch)
tree0341ebc367d12ec096864eb0de512cbde1121fea /pkg/codesearch/testdata/query-dir-index-root2
parente263b4d7a71c6049e9b187adb5d1309f366acd23 (diff)
tools/clang/codesearch: improve codesearch to handle global variables
Contributes to #6469. To handle global variables: * Add EntityKindGlobalVariable * Modify TraverseVarDecl() function logic * Add a check to ensure StartLine and EndLine are in the same file * Fix missing #include <cstdint> in json.h
Diffstat (limited to 'pkg/codesearch/testdata/query-dir-index-root2')
-rw-r--r--pkg/codesearch/testdata/query-dir-index-root21
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/codesearch/testdata/query-dir-index-root2 b/pkg/codesearch/testdata/query-dir-index-root2
index 804bdce54..2b9fdce5d 100644
--- a/pkg/codesearch/testdata/query-dir-index-root2
+++ b/pkg/codesearch/testdata/query-dir-index-root2
@@ -4,6 +4,7 @@ directory /mm/.. subdirs:
- mm
directory /mm/.. files:
+ - global_vars.c
- refs.c
- source0.c
- source0.h