diff options
| author | Artem Metla <ametla@google.com> | 2026-02-02 15:31:52 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-02-17 17:06:23 +0000 |
| commit | 39751c2134a039db51aba39640ff82d072213d73 (patch) | |
| tree | 0341ebc367d12ec096864eb0de512cbde1121fea /pkg/codesearch/testdata/query-dir-index-root | |
| parent | e263b4d7a71c6049e9b187adb5d1309f366acd23 (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-root')
| -rw-r--r-- | pkg/codesearch/testdata/query-dir-index-root | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/codesearch/testdata/query-dir-index-root b/pkg/codesearch/testdata/query-dir-index-root index 5e72b64c1..7370911ea 100644 --- a/pkg/codesearch/testdata/query-dir-index-root +++ b/pkg/codesearch/testdata/query-dir-index-root @@ -4,6 +4,7 @@ directory / subdirs: - mm directory / files: + - global_vars.c - refs.c - source0.c - source0.h |
