aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/codesearch/testdata/query-file-index-source
diff options
context:
space:
mode:
authorFlorent Revest <revest@chromium.org>2026-01-21 15:38:10 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-25 20:14:51 +0000
commit02bac03162280236ef7a33993358cb7dcff443d1 (patch)
treefd98d9c42a355463260042cffc3379a9f23f17f7 /pkg/codesearch/testdata/query-file-index-source
parent40acda8acc843b8f5cc068eaad3b6b217e5a9de6 (diff)
tools/clang/json: escape strings properly
When preparing a codesearch index, I encountered errors which I narrowed down to lines like the following in the json output of codesearch: "type": "void (void __attribute__((btf_type_tag("user")))*, const void *, size_t, size_t)", After this change, the line gets formatted like this: "type": "void (void __attribute__((btf_type_tag(\"user\")))*, const void *, size_t, size_t)", This fixes the errors I encountered
Diffstat (limited to 'pkg/codesearch/testdata/query-file-index-source')
-rw-r--r--pkg/codesearch/testdata/query-file-index-source1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/codesearch/testdata/query-file-index-source b/pkg/codesearch/testdata/query-file-index-source
index af52513b7..edfe4616f 100644
--- a/pkg/codesearch/testdata/query-file-index-source
+++ b/pkg/codesearch/testdata/query-file-index-source
@@ -5,5 +5,6 @@ file source0.c defines the following entities:
function close
function func_accepting_a_struct
function function_with_comment_in_header
+function function_with_quotes_in_type
function open
struct struct_in_c_file