clangIndex

This commit is contained in:
Fangrui Song 2018-07-07 16:56:47 -07:00
parent 9b54e5391c
commit 96e0f0fafa
126 changed files with 2209 additions and 2232 deletions

View File

@ -2,7 +2,7 @@
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [],
"usr2var": []

View File

@ -7,17 +7,17 @@ class Foo;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": ["1:7-1:10|0|1|1", "2:7-2:10|0|1|1", "4:7-4:10|0|1|1"],
"spell": "3:7-3:10|0|1|2",
"extent": "3:1-3:13|0|1|0",
"extent": "1:1-1:10|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],

View File

@ -12,7 +12,7 @@ void foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 3385168158331140247,
"detailed_name": "Foo::Foo()",
@ -21,13 +21,13 @@ OUTPUT:
"kind": 9,
"storage": 0,
"declarations": [],
"spell": "3:3-3:6|15041163540773201510|2|2",
"spell": "3:3-3:6|15041163540773201510|2|514",
"extent": "3:3-3:11|15041163540773201510|2|0",
"declaring_type": 15041163540773201510,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["7:7-7:8|4259594751088586730|3|288", "8:17-8:20|4259594751088586730|3|32"],
"uses": ["7:7-7:8|15041163540773201510|2|8228", "8:17-8:20|15041163540773201510|2|8228"],
"callees": []
}, {
"usr": 4259594751088586730,
@ -42,17 +42,17 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [10983126130596230582, 17165811951126099095],
"vars": [],
"uses": [],
"callees": ["7:7-7:8|3385168158331140247|3|288", "7:7-7:8|3385168158331140247|3|288", "8:17-8:20|3385168158331140247|3|32", "8:17-8:20|3385168158331140247|3|32"]
"callees": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": ["3:3-3:6|0|1|4"],
"declarations": [],
"spell": "1:7-1:10|0|1|2",
"extent": "1:1-4:2|0|1|0",
"alias_of": 0,
@ -62,7 +62,7 @@ OUTPUT:
"funcs": [3385168158331140247],
"vars": [],
"instances": [10983126130596230582, 17165811951126099095],
"uses": ["3:3-3:6|15041163540773201510|2|4", "7:3-7:6|0|1|4", "8:3-8:6|0|1|4", "8:17-8:20|0|1|4"]
"uses": ["3:3-3:6|0|1|4", "7:3-7:6|0|1|4", "8:3-8:6|0|1|4", "8:17-8:20|0|1|4"]
}],
"usr2var": [{
"usr": 10983126130596230582,

View File

@ -17,7 +17,7 @@ void foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 3385168158331140247,
"detailed_name": "Foo::Foo()",
@ -26,13 +26,13 @@ OUTPUT:
"kind": 9,
"storage": 0,
"declarations": [],
"spell": "3:3-3:6|15041163540773201510|2|2",
"spell": "3:3-3:6|15041163540773201510|2|514",
"extent": "3:3-3:11|15041163540773201510|2|0",
"declaring_type": 15041163540773201510,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["8:7-8:8|4259594751088586730|3|288"],
"uses": ["8:7-8:8|15041163540773201510|2|8228"],
"callees": []
}, {
"usr": 4259594751088586730,
@ -47,9 +47,9 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [1893354193220338759],
"vars": [],
"uses": [],
"callees": ["8:7-8:8|3385168158331140247|3|288", "8:7-8:8|3385168158331140247|3|288"]
"callees": []
}, {
"usr": 7440261702884428359,
"detailed_name": "Foo::~Foo() noexcept",
@ -58,9 +58,9 @@ OUTPUT:
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "4:3-4:7|15041163540773201510|2|2",
"spell": "4:3-4:4|15041163540773201510|2|514",
"extent": "4:3-4:12|15041163540773201510|2|0",
"declaring_type": 15041163540773201510,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -69,11 +69,11 @@ OUTPUT:
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": ["3:3-3:6|0|1|4", "4:4-4:7|0|1|4"],
"declarations": [],
"spell": "1:7-1:10|0|1|2",
"extent": "1:1-5:2|0|1|0",
"alias_of": 0,
@ -83,7 +83,7 @@ OUTPUT:
"funcs": [3385168158331140247, 7440261702884428359],
"vars": [],
"instances": [1893354193220338759],
"uses": ["3:3-3:6|15041163540773201510|2|4", "8:3-8:6|0|1|4"]
"uses": ["3:3-3:6|0|1|4", "4:4-4:7|0|1|4", "8:3-8:6|0|1|4"]
}],
"usr2var": [{
"usr": 1893354193220338759,

View File

@ -11,7 +11,7 @@ void Make() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 3957104924306079513,
"detailed_name": "void Make()",
@ -25,9 +25,9 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [449111627548814328, 17097499197730163115],
"vars": [],
"uses": [],
"callees": ["6:8-6:12|10530961286677896857|3|288", "6:8-6:12|10530961286677896857|3|288", "7:15-7:19|10530961286677896857|3|32", "7:15-7:19|10530961286677896857|3|32"]
"callees": []
}, {
"usr": 10530961286677896857,
"detailed_name": "Type::Type()",
@ -36,22 +36,22 @@ OUTPUT:
"kind": 9,
"storage": 0,
"declarations": [],
"spell": "2:3-2:7|13487927231218873822|2|2",
"spell": "2:3-2:7|13487927231218873822|2|514",
"extent": "2:3-2:12|13487927231218873822|2|0",
"declaring_type": 13487927231218873822,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["6:8-6:12|3957104924306079513|3|288", "7:15-7:19|3957104924306079513|3|32"],
"uses": ["6:8-6:12|13487927231218873822|2|8228", "7:15-7:19|13487927231218873822|2|8228"],
"callees": []
}],
"usr2type": [{
"usr": 13487927231218873822,
"detailed_name": "Type",
"qual_name_offset": 0,
"detailed_name": "struct Type {}",
"qual_name_offset": 7,
"short_name": "Type",
"kind": 23,
"declarations": ["2:3-2:7|0|1|4"],
"declarations": [],
"spell": "1:8-1:12|0|1|2",
"extent": "1:1-3:2|0|1|0",
"alias_of": 0,
@ -61,7 +61,7 @@ OUTPUT:
"funcs": [10530961286677896857],
"vars": [],
"instances": [449111627548814328, 17097499197730163115],
"uses": ["2:3-2:7|13487927231218873822|2|4", "6:3-6:7|0|1|4", "7:15-7:19|0|1|4"]
"uses": ["2:3-2:7|0|1|4", "6:3-6:7|0|1|4", "7:15-7:19|0|1|4"]
}],
"usr2var": [{
"usr": 449111627548814328,
@ -77,10 +77,10 @@ OUTPUT:
"storage": 0
}, {
"usr": 17097499197730163115,
"detailed_name": "Type foo1",
"detailed_name": "auto foo1",
"qual_name_offset": 5,
"short_name": "foo1",
"hover": "Type foo1 = Type()",
"hover": "auto foo1 = Type()",
"declarations": [],
"spell": "7:8-7:12|3957104924306079513|3|2",
"extent": "7:3-7:21|3957104924306079513|3|0",

View File

@ -11,18 +11,18 @@ EXTRA_FLAGS:
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 17319723337446061757,
"detailed_name": "Foo::Foo()",
"detailed_name": "Foo::Foo::Foo()",
"qual_name_offset": 0,
"short_name": "Foo",
"kind": 9,
"storage": 0,
"declarations": [],
"spell": "4:6-4:9|15041163540773201510|2|2",
"spell": "4:6-4:9|0|1|514",
"extent": "4:1-4:11|0|1|0",
"declaring_type": 15041163540773201510,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -31,11 +31,11 @@ OUTPUT:
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": ["4:6-4:9|0|1|4"],
"declarations": [],
"spell": "1:8-1:11|0|1|2",
"extent": "1:1-1:14|0|1|0",
"alias_of": 0,
@ -45,7 +45,7 @@ OUTPUT:
"funcs": [17319723337446061757],
"vars": [],
"instances": [],
"uses": ["4:6-4:9|0|1|4", "4:1-4:4|0|1|4"]
"uses": ["4:1-4:4|0|1|4", "4:6-4:9|0|1|4"]
}],
"usr2var": []
}

View File

@ -27,7 +27,7 @@ void caller22() {
OUTPUT: make_functions.h
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 3765833212244435302,
"detailed_name": "Foobar::Foobar(int &&, Bar *, bool *)",
@ -36,9 +36,9 @@ OUTPUT: make_functions.h
"kind": 9,
"storage": 0,
"declarations": [],
"spell": "7:3-7:9|14935975554338052500|2|2",
"spell": "7:3-7:9|14935975554338052500|2|514",
"extent": "7:3-7:32|14935975554338052500|2|0",
"declaring_type": 14935975554338052500,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -52,9 +52,9 @@ OUTPUT: make_functions.h
"kind": 9,
"storage": 0,
"declarations": [],
"spell": "6:3-6:9|14935975554338052500|2|2",
"spell": "6:3-6:9|14935975554338052500|2|514",
"extent": "6:3-6:17|14935975554338052500|2|0",
"declaring_type": 14935975554338052500,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -68,9 +68,9 @@ OUTPUT: make_functions.h
"kind": 9,
"storage": 0,
"declarations": [],
"spell": "5:3-5:9|14935975554338052500|2|2",
"spell": "5:3-5:9|14935975554338052500|2|514",
"extent": "5:3-5:14|14935975554338052500|2|0",
"declaring_type": 14935975554338052500,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -84,9 +84,9 @@ OUTPUT: make_functions.h
"kind": 9,
"storage": 0,
"declarations": [],
"spell": "8:3-8:9|14935975554338052500|2|2",
"spell": "8:3-8:9|14935975554338052500|2|514",
"extent": "8:3-8:30|14935975554338052500|2|0",
"declaring_type": 14935975554338052500,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -95,8 +95,8 @@ OUTPUT: make_functions.h
}],
"usr2type": [{
"usr": 12993848456528750350,
"detailed_name": "Bar",
"qual_name_offset": 0,
"detailed_name": "struct Bar {}",
"qual_name_offset": 7,
"short_name": "Bar",
"kind": 23,
"declarations": [],
@ -112,11 +112,11 @@ OUTPUT: make_functions.h
"uses": ["7:17-7:20|0|1|4", "8:15-8:18|0|1|4"]
}, {
"usr": 14935975554338052500,
"detailed_name": "Foobar",
"qual_name_offset": 0,
"detailed_name": "class Foobar {}",
"qual_name_offset": 6,
"short_name": "Foobar",
"kind": 5,
"declarations": ["5:3-5:9|0|1|4", "6:3-6:9|0|1|4", "7:3-7:9|0|1|4", "8:3-8:9|0|1|4"],
"declarations": [],
"spell": "3:7-3:13|0|1|2",
"extent": "3:1-9:2|0|1|0",
"alias_of": 0,
@ -126,17 +126,14 @@ OUTPUT: make_functions.h
"funcs": [13131778807733950299, 13028995015627606181, 3765833212244435302, 17321436359755983845],
"vars": [],
"instances": [],
"uses": ["5:3-5:9|14935975554338052500|2|4", "6:3-6:9|14935975554338052500|2|4", "7:3-7:9|14935975554338052500|2|4", "8:3-8:9|14935975554338052500|2|4"]
"uses": ["5:3-5:9|0|1|4", "6:3-6:9|0|1|4", "7:3-7:9|0|1|4", "8:3-8:9|0|1|4"]
}],
"usr2var": []
}
OUTPUT: make_functions.cc
{
"includes": [{
"line": 0,
"resolved_path": "&make_functions.h"
}],
"skipped_by_preprocessor": [],
"includes": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 2532818908869373467,
"detailed_name": "T *maKE_NoRefs(Args ...args)",
@ -150,8 +147,8 @@ OUTPUT: make_functions.cc
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [3908732770590594660],
"uses": ["17:3-17:14|2816883305867289955|3|32"],
"vars": [],
"uses": ["17:3-17:14|0|1|8228"],
"callees": []
}, {
"usr": 2816883305867289955,
@ -168,48 +165,6 @@ OUTPUT: make_functions.cc
"derived": [],
"vars": [],
"uses": [],
"callees": ["14:3-14:13|15793662558620604611|3|32", "15:3-15:13|15793662558620604611|3|32", "16:3-16:13|15793662558620604611|3|32", "17:3-17:14|2532818908869373467|3|32"]
}, {
"usr": 3765833212244435302,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["16:3-16:13|0|1|288"],
"callees": []
}, {
"usr": 13028995015627606181,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["15:3-15:13|0|1|288"],
"callees": []
}, {
"usr": 13131778807733950299,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["14:3-14:13|0|1|288"],
"callees": []
}, {
"usr": 15793662558620604611,
@ -224,98 +179,16 @@ OUTPUT: make_functions.cc
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [8463700030555379526],
"uses": ["14:3-14:13|2816883305867289955|3|32", "15:3-15:13|2816883305867289955|3|32", "16:3-16:13|2816883305867289955|3|32"],
"callees": []
}, {
"usr": 17321436359755983845,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["17:3-17:14|0|1|288"],
"uses": ["14:3-14:13|0|1|8228", "15:3-15:13|0|1|8228", "16:3-16:13|0|1|8228"],
"callees": []
}],
"usr2type": [{
"usr": 3337128087216004141,
"detailed_name": "Args",
"qual_name_offset": 0,
"short_name": "Args",
"kind": 26,
"declarations": [],
"spell": "8:35-8:39|2532818908869373467|3|2",
"extent": "8:23-8:39|2532818908869373467|3|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["9:16-9:20|0|1|4"]
}, {
"usr": 9281343527065946499,
"detailed_name": "T",
"qual_name_offset": 0,
"short_name": "T",
"kind": 26,
"declarations": [],
"spell": "3:20-3:21|15793662558620604611|3|2",
"extent": "3:11-3:21|15793662558620604611|3|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["4:1-4:2|0|1|4"]
}, {
"usr": 10771590811355716928,
"detailed_name": "Args",
"qual_name_offset": 0,
"short_name": "Args",
"kind": 26,
"declarations": [],
"spell": "3:35-3:39|15793662558620604611|3|2",
"extent": "3:23-3:39|15793662558620604611|3|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["4:15-4:19|0|1|4"]
}, {
"usr": 11897454629873246477,
"detailed_name": "T",
"qual_name_offset": 0,
"short_name": "T",
"kind": 26,
"declarations": [],
"spell": "8:20-8:21|2532818908869373467|3|2",
"extent": "8:11-8:21|2532818908869373467|3|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["9:1-9:2|0|1|4"]
}, {
"usr": 12993848456528750350,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"detailed_name": "struct Bar {}",
"qual_name_offset": 7,
"short_name": "Bar",
"kind": 23,
"declarations": [],
"alias_of": 0,
"bases": [],
@ -327,10 +200,10 @@ OUTPUT: make_functions.cc
"uses": ["16:29-16:32|0|1|4", "17:30-17:33|0|1|4"]
}, {
"usr": 14935975554338052500,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"detailed_name": "class Foobar {}",
"qual_name_offset": 6,
"short_name": "Foobar",
"kind": 5,
"declarations": [],
"alias_of": 0,
"bases": [],
@ -343,11 +216,11 @@ OUTPUT: make_functions.cc
}],
"usr2var": [{
"usr": 3908732770590594660,
"detailed_name": "Args... args",
"detailed_name": "Args ...args",
"qual_name_offset": 8,
"short_name": "args",
"declarations": [],
"spell": "9:24-9:28|2532818908869373467|3|2",
"spell": "9:24-9:28|2532818908869373467|3|514",
"extent": "9:16-9:28|2532818908869373467|3|0",
"type": 0,
"uses": [],
@ -355,11 +228,11 @@ OUTPUT: make_functions.cc
"storage": 0
}, {
"usr": 8463700030555379526,
"detailed_name": "Args &&... args",
"qual_name_offset": 11,
"detailed_name": "Args &&...args",
"qual_name_offset": 10,
"short_name": "args",
"declarations": [],
"spell": "4:25-4:29|15793662558620604611|3|2",
"spell": "4:25-4:29|15793662558620604611|3|514",
"extent": "4:15-4:29|15793662558620604611|3|0",
"type": 0,
"uses": [],

View File

@ -9,17 +9,17 @@ class Foo;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": ["1:7-1:10|0|1|1", "2:7-2:10|0|1|1", "4:7-4:10|0|1|1"],
"spell": "3:7-3:10|0|1|2",
"extent": "3:1-3:13|0|1|0",
"extent": "1:1-1:10|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],

View File

@ -6,10 +6,24 @@ class Foo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 15041163540773201510,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [9736582033442720743],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -25,8 +39,8 @@ OUTPUT:
"uses": []
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
@ -50,9 +64,9 @@ OUTPUT:
"qual_name_offset": 4,
"short_name": "foo",
"declarations": [],
"spell": "2:7-2:10|15041163540773201510|2|2",
"spell": "2:7-2:10|15041163540773201510|2|514",
"extent": "2:3-2:10|15041163540773201510|2|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 8,
"storage": 0

View File

@ -8,10 +8,24 @@ int Foo::foo;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 15041163540773201510,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [8942920329766232482, 8942920329766232482],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -23,12 +37,12 @@ OUTPUT:
"types": [],
"funcs": [],
"vars": [],
"instances": [8942920329766232482],
"instances": [8942920329766232482, 8942920329766232482],
"uses": []
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
@ -39,25 +53,22 @@ OUTPUT:
"derived": [],
"types": [],
"funcs": [],
"vars": [{
"L": 8942920329766232482,
"R": -1
}],
"vars": [],
"instances": [],
"uses": ["5:5-5:8|0|1|4"]
}],
"usr2var": [{
"usr": 8942920329766232482,
"detailed_name": "int Foo::foo",
"qual_name_offset": 4,
"detailed_name": "static int Foo::foo",
"qual_name_offset": 11,
"short_name": "foo",
"declarations": ["2:14-2:17|15041163540773201510|2|1"],
"spell": "5:10-5:13|15041163540773201510|2|2",
"extent": "5:1-5:13|0|1|0",
"type": 17,
"declarations": ["2:14-2:17|15041163540773201510|2|513"],
"spell": "5:10-5:13|15041163540773201510|2|514",
"extent": "2:3-2:17|15041163540773201510|2|0",
"type": 53,
"uses": [],
"kind": 8,
"storage": 0
"kind": 13,
"storage": 2
}]
}
*/

View File

@ -8,7 +8,7 @@ void foo();
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",
@ -18,7 +18,7 @@ OUTPUT:
"storage": 0,
"declarations": ["1:6-1:9|0|1|1", "2:6-2:9|0|1|1", "4:6-4:9|0|1|1"],
"spell": "3:6-3:9|0|1|2",
"extent": "3:1-3:14|0|1|0",
"extent": "1:1-1:11|0|1|0",
"declaring_type": 0,
"bases": [],
"derived": [],

View File

@ -8,26 +8,26 @@ int foo(int a, int b) { return 0; }
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 2747674671862363334,
"detailed_name": "int foo(int a, int b)",
"detailed_name": "int foo(int, int)",
"qual_name_offset": 4,
"short_name": "foo",
"kind": 12,
"storage": 0,
"declarations": ["1:5-1:8|0|1|1", "2:5-2:8|0|1|1", "4:5-4:8|0|1|1"],
"spell": "5:5-5:8|0|1|2",
"extent": "5:1-5:36|0|1|0",
"extent": "1:1-1:18|0|1|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [14555488990109936920, 10963664335057337329],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -48,9 +48,9 @@ OUTPUT:
"qual_name_offset": 4,
"short_name": "b",
"declarations": [],
"spell": "5:20-5:21|2747674671862363334|3|2",
"spell": "5:20-5:21|2747674671862363334|3|514",
"extent": "5:16-5:21|2747674671862363334|3|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 253,
"storage": 0
@ -60,9 +60,9 @@ OUTPUT:
"qual_name_offset": 4,
"short_name": "a",
"declarations": [],
"spell": "5:13-5:14|2747674671862363334|3|2",
"spell": "5:13-5:14|2747674671862363334|3|514",
"extent": "5:9-5:14|2747674671862363334|3|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 253,
"storage": 0

View File

@ -10,7 +10,7 @@ void Foo::def() {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4012226004228259562,
"detailed_name": "void Foo::declonly()",
@ -18,8 +18,8 @@ OUTPUT:
"short_name": "declonly",
"kind": 6,
"storage": 0,
"declarations": ["2:8-2:16|15041163540773201510|2|1"],
"declaring_type": 15041163540773201510,
"declarations": ["2:8-2:16|15041163540773201510|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -32,10 +32,8 @@ OUTPUT:
"short_name": "purevirtual",
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "3:16-3:27|15041163540773201510|2|2",
"extent": "3:3-3:33|15041163540773201510|2|0",
"declaring_type": 15041163540773201510,
"declarations": ["3:16-3:27|15041163540773201510|2|577"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -48,10 +46,10 @@ OUTPUT:
"short_name": "def",
"kind": 6,
"storage": 0,
"declarations": ["4:8-4:11|15041163540773201510|2|1"],
"spell": "7:11-7:14|15041163540773201510|2|2",
"extent": "7:1-7:19|0|1|0",
"declaring_type": 15041163540773201510,
"declarations": ["4:8-4:11|15041163540773201510|2|513"],
"spell": "7:11-7:14|15041163540773201510|2|514",
"extent": "4:3-4:13|15041163540773201510|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -60,8 +58,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],

View File

@ -8,15 +8,31 @@ enum class Foo : uint8_t {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"usr2type": [{
"usr": 5,
"skipped_ranges": [],
"usr2func": [{
"usr": 16985894625255407295,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [439339022761937396, 15962370213938840720],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 2010430204259339553,
"detailed_name": "typedef unsigned char uint8_t",
"qual_name_offset": 22,
"short_name": "uint8_t",
"kind": 252,
"declarations": [],
"spell": "1:23-1:30|0|1|2",
"extent": "1:1-1:30|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],
@ -25,28 +41,10 @@ OUTPUT:
"vars": [],
"instances": [],
"uses": []
}, {
"usr": 2010430204259339553,
"detailed_name": "uint8_t",
"qual_name_offset": 0,
"short_name": "uint8_t",
"kind": 252,
"hover": "typedef unsigned char uint8_t",
"declarations": [],
"spell": "1:23-1:30|0|1|2",
"extent": "1:1-1:30|0|1|0",
"alias_of": 5,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["1:23-1:30|0|1|4", "2:12-2:15|0|1|4"]
}, {
"usr": 16985894625255407295,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "enum class Foo : uint8_t {\n}",
"qual_name_offset": 11,
"short_name": "Foo",
"kind": 10,
"declarations": [],
@ -68,22 +66,22 @@ OUTPUT:
"short_name": "A",
"hover": "Foo::A = 0",
"declarations": [],
"spell": "3:3-3:4|16985894625255407295|2|2",
"spell": "3:3-3:4|16985894625255407295|2|514",
"extent": "3:3-3:4|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
}, {
"usr": 15962370213938840720,
"detailed_name": "Foo::B",
"detailed_name": "Foo::B = 20",
"qual_name_offset": 0,
"short_name": "B",
"hover": "Foo::B = 20",
"hover": "Foo::B = 20 = 20",
"declarations": [],
"spell": "4:3-4:4|16985894625255407295|2|2",
"spell": "4:3-4:4|16985894625255407295|2|514",
"extent": "4:3-4:9|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0

View File

@ -7,12 +7,26 @@ enum Foo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 16985894625255407295,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [439339022761937396, 15962370213938840720],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 16985894625255407295,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "enum Foo {\n}",
"qual_name_offset": 5,
"short_name": "Foo",
"kind": 10,
"declarations": [],
@ -29,27 +43,27 @@ OUTPUT:
}],
"usr2var": [{
"usr": 439339022761937396,
"detailed_name": "Foo::A",
"detailed_name": "A",
"qual_name_offset": 0,
"short_name": "A",
"hover": "Foo::A = 0",
"hover": "A = 0",
"declarations": [],
"spell": "2:3-2:4|16985894625255407295|2|2",
"spell": "2:3-2:4|16985894625255407295|2|514",
"extent": "2:3-2:4|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
}, {
"usr": 15962370213938840720,
"detailed_name": "Foo::B",
"detailed_name": "B = 20",
"qual_name_offset": 0,
"short_name": "B",
"hover": "Foo::B = 20",
"hover": "B = 20 = 20",
"declarations": [],
"spell": "3:3-3:4|16985894625255407295|2|2",
"spell": "3:3-3:4|16985894625255407295|2|514",
"extent": "3:3-3:9|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0

View File

@ -14,27 +14,40 @@ enum class E : int32_t {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"usr2type": [{
"usr": 17,
"skipped_ranges": [],
"usr2func": [{
"usr": 2986879766914123941,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"alias_of": 0,
"declaring_type": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
"vars": [16614320383091394267, 16847439761518576294],
"uses": [],
"callees": []
}, {
"usr": 2986879766914123941,
"detailed_name": "E",
"usr": 16985894625255407295,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [439339022761937396, 15962370213938840720],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 2986879766914123941,
"detailed_name": "enum class E : int32_t {\n}",
"qual_name_offset": 11,
"short_name": "E",
"kind": 10,
"declarations": [],
@ -50,26 +63,25 @@ OUTPUT:
"uses": []
}, {
"usr": 14939241684006947339,
"detailed_name": "int32_t",
"qual_name_offset": 0,
"detailed_name": "typedef int int32_t",
"qual_name_offset": 12,
"short_name": "int32_t",
"kind": 252,
"hover": "typedef int int32_t",
"declarations": [],
"spell": "6:13-6:20|0|1|2",
"extent": "6:1-6:20|0|1|0",
"alias_of": 17,
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["6:13-6:20|0|1|4", "8:12-8:13|0|1|4"]
"uses": []
}, {
"usr": 16985894625255407295,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "enum Foo : int {\n}",
"qual_name_offset": 5,
"short_name": "Foo",
"kind": 10,
"declarations": [],
@ -86,27 +98,27 @@ OUTPUT:
}],
"usr2var": [{
"usr": 439339022761937396,
"detailed_name": "Foo::A",
"detailed_name": "A",
"qual_name_offset": 0,
"short_name": "A",
"hover": "Foo::A = 0",
"hover": "A = 0",
"declarations": [],
"spell": "2:3-2:4|16985894625255407295|2|2",
"spell": "2:3-2:4|16985894625255407295|2|514",
"extent": "2:3-2:4|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
}, {
"usr": 15962370213938840720,
"detailed_name": "Foo::B",
"detailed_name": "B = 20",
"qual_name_offset": 0,
"short_name": "B",
"hover": "Foo::B = 20",
"hover": "B = 20 = 20",
"declarations": [],
"spell": "3:3-3:4|16985894625255407295|2|2",
"spell": "3:3-3:4|16985894625255407295|2|514",
"extent": "3:3-3:9|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
@ -117,22 +129,22 @@ OUTPUT:
"short_name": "E0",
"hover": "E::E0 = 0",
"declarations": [],
"spell": "9:3-9:5|2986879766914123941|2|2",
"spell": "9:3-9:5|2986879766914123941|2|514",
"extent": "9:3-9:5|2986879766914123941|2|0",
"type": 2986879766914123941,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
}, {
"usr": 16847439761518576294,
"detailed_name": "E::E20",
"detailed_name": "E::E20 = 20",
"qual_name_offset": 0,
"short_name": "E20",
"hover": "E::E20 = 20",
"hover": "E::E20 = 20 = 20",
"declarations": [],
"spell": "10:3-10:6|2986879766914123941|2|2",
"spell": "10:3-10:6|2986879766914123941|2|514",
"extent": "10:3-10:11|2986879766914123941|2|0",
"type": 2986879766914123941,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0

View File

@ -9,12 +9,26 @@ Foo x = Foo::A;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 16985894625255407295,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [439339022761937396, 15962370213938840720],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 16985894625255407295,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "enum class Foo : int {\n}",
"qual_name_offset": 11,
"short_name": "Foo",
"kind": 10,
"declarations": [],
@ -36,10 +50,10 @@ OUTPUT:
"short_name": "A",
"hover": "Foo::A = 0",
"declarations": [],
"spell": "2:3-2:4|16985894625255407295|2|2",
"spell": "2:3-2:4|16985894625255407295|2|514",
"extent": "2:3-2:4|16985894625255407295|2|0",
"type": 16985894625255407295,
"uses": ["6:14-6:15|0|1|4"],
"type": 0,
"uses": ["6:14-6:15|16985894625255407295|2|4"],
"kind": 22,
"storage": 0
}, {
@ -57,14 +71,14 @@ OUTPUT:
"storage": 0
}, {
"usr": 15962370213938840720,
"detailed_name": "Foo::B",
"detailed_name": "Foo::B = 20",
"qual_name_offset": 0,
"short_name": "B",
"hover": "Foo::B = 20",
"hover": "Foo::B = 20 = 20",
"declarations": [],
"spell": "3:3-3:4|16985894625255407295|2|2",
"spell": "3:3-3:4|16985894625255407295|2|514",
"extent": "3:3-3:9|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0

View File

@ -12,12 +12,12 @@ Foo<B> b;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 6697181287623958829,
"detailed_name": "A",
"qual_name_offset": 0,
"detailed_name": "enum A {\n}",
"qual_name_offset": 5,
"short_name": "A",
"kind": 10,
"declarations": [],
@ -33,25 +33,25 @@ OUTPUT:
"uses": ["9:5-9:6|0|1|4"]
}, {
"usr": 10528472276654770367,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 5,
"kind": 23,
"declarations": [],
"spell": "5:8-5:11|0|1|2",
"extent": "5:1-7:2|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"types": [13938528237873543349],
"funcs": [],
"vars": [],
"instances": [12028309045033782423],
"uses": ["9:1-9:4|0|1|4", "10:1-10:4|0|1|4"]
}, {
"usr": 13892793056005362145,
"detailed_name": "B",
"qual_name_offset": 0,
"detailed_name": "enum B {\n}",
"qual_name_offset": 5,
"short_name": "B",
"kind": 10,
"declarations": [],
@ -67,12 +67,12 @@ OUTPUT:
"uses": ["10:5-10:6|0|1|4"]
}, {
"usr": 13938528237873543349,
"detailed_name": "Foo::Inner",
"qual_name_offset": 0,
"detailed_name": "struct Foo::Inner {}",
"qual_name_offset": 7,
"short_name": "Inner",
"kind": 23,
"declarations": [],
"spell": "6:10-6:15|10528472276654770367|2|2",
"spell": "6:10-6:15|10528472276654770367|2|514",
"extent": "6:3-6:18|10528472276654770367|2|0",
"alias_of": 0,
"bases": [],
@ -81,7 +81,7 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [16721564935990383768],
"uses": ["9:9-9:14|0|1|4"]
"uses": ["9:9-9:14|10528472276654770367|2|4"]
}],
"usr2var": [{
"usr": 12028309045033782423,

View File

@ -4,7 +4,7 @@ void foo(int a, int b);
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 2747674671862363334,
"detailed_name": "void foo(int a, int b)",

View File

@ -6,7 +6,7 @@ void foo() {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",
@ -16,7 +16,7 @@ OUTPUT:
"storage": 0,
"declarations": ["1:6-1:9|0|1|1"],
"spell": "3:6-3:9|0|1|2",
"extent": "3:1-3:14|0|1|0",
"extent": "1:1-1:11|0|1|0",
"declaring_type": 0,
"bases": [],
"derived": [],

View File

@ -4,7 +4,7 @@ void foo() {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",

View File

@ -5,15 +5,15 @@ class Derived : public Parent {};
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 3866412049634585509,
"detailed_name": "Parent",
"qual_name_offset": 0,
"detailed_name": "class Parent {}",
"qual_name_offset": 6,
"short_name": "Parent",
"kind": 5,
"declarations": ["2:24-2:30|0|1|4"],
"declarations": [],
"spell": "1:7-1:13|0|1|2",
"extent": "1:1-1:16|0|1|0",
"alias_of": 0,
@ -23,11 +23,11 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["2:24-2:30|0|1|4"]
"uses": ["2:24-2:30|0|1|1028"]
}, {
"usr": 10963370434658308541,
"detailed_name": "Derived",
"qual_name_offset": 0,
"detailed_name": "class Derived : public Parent {}",
"qual_name_offset": 6,
"short_name": "Derived",
"kind": 5,
"declarations": [],

View File

@ -16,30 +16,15 @@ class Derived : Base1<3>, Base2<Derived>, Derived1<4>, Derived2<Derived> {};
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 9,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [12990052348105569112],
"uses": []
}, {
"usr": 5863733211528032190,
"detailed_name": "Derived1",
"qual_name_offset": 0,
"detailed_name": "class Derived1 : Base1<T> {}",
"qual_name_offset": 6,
"short_name": "Derived1",
"kind": 5,
"declarations": ["13:43-13:51|0|1|4"],
"declarations": [],
"spell": "8:7-8:15|0|1|2",
"extent": "8:1-8:29|0|1|0",
"alias_of": 0,
@ -49,31 +34,14 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["13:43-13:51|0|1|4"]
}, {
"usr": 7916588271848318236,
"detailed_name": "T",
"qual_name_offset": 0,
"short_name": "T",
"kind": 26,
"declarations": [],
"spell": "10:19-10:20|0|1|2",
"extent": "10:10-10:20|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["11:24-11:25|0|1|4"]
"uses": ["13:43-13:51|0|1|1028"]
}, {
"usr": 10651399730831737929,
"detailed_name": "Derived2",
"qual_name_offset": 0,
"detailed_name": "class Derived2 : Base2<T> {}",
"qual_name_offset": 6,
"short_name": "Derived2",
"kind": 5,
"declarations": ["13:56-13:64|0|1|4"],
"declarations": [],
"spell": "11:7-11:15|0|1|2",
"extent": "11:1-11:29|0|1|0",
"alias_of": 0,
@ -83,14 +51,14 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["13:56-13:64|0|1|4"]
"uses": ["13:56-13:64|0|1|1028"]
}, {
"usr": 10963370434658308541,
"detailed_name": "Derived",
"qual_name_offset": 0,
"detailed_name": "class Derived : Base1<3>, Base2<Derived>, Derived1<4>, Derived2<Derived> {}",
"qual_name_offset": 6,
"short_name": "Derived",
"kind": 5,
"declarations": ["13:33-13:40|0|1|4", "13:65-13:72|0|1|4"],
"declarations": [],
"spell": "13:7-13:14|0|1|2",
"extent": "13:1-13:76|0|1|0",
"alias_of": 0,
@ -100,14 +68,14 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["13:33-13:40|0|1|4", "13:65-13:72|0|1|4"]
"uses": ["13:33-13:40|0|1|1028", "13:65-13:72|0|1|1028"]
}, {
"usr": 11118288764693061434,
"detailed_name": "Base2",
"qual_name_offset": 0,
"detailed_name": "class Base2 {}",
"qual_name_offset": 6,
"short_name": "Base2",
"kind": 5,
"declarations": ["11:18-11:23|0|1|4", "13:27-13:32|0|1|4"],
"declarations": [],
"spell": "5:7-5:12|0|1|2",
"extent": "5:1-5:15|0|1|0",
"alias_of": 0,
@ -117,14 +85,14 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["11:18-11:23|0|1|4", "13:27-13:32|0|1|4"]
"uses": ["11:18-11:23|0|1|1028", "13:27-13:32|0|1|1028"]
}, {
"usr": 11930058224338108382,
"detailed_name": "Base1",
"qual_name_offset": 0,
"detailed_name": "class Base1 {}",
"qual_name_offset": 6,
"short_name": "Base1",
"kind": 5,
"declarations": ["8:18-8:23|0|1|4", "13:17-13:22|0|1|4"],
"declarations": [],
"spell": "2:7-2:12|0|1|2",
"extent": "2:1-2:15|0|1|0",
"alias_of": 0,
@ -134,20 +102,8 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["8:18-8:23|0|1|4", "13:17-13:22|0|1|4"]
"uses": ["8:18-8:23|0|1|1028", "13:17-13:22|0|1|1028"]
}],
"usr2var": [{
"usr": 12990052348105569112,
"detailed_name": "unsigned int T",
"qual_name_offset": 13,
"short_name": "",
"declarations": [],
"spell": "7:23-7:24|0|1|2",
"extent": "7:10-7:24|0|1|0",
"type": 9,
"uses": ["8:24-8:25|0|1|4"],
"kind": 26,
"storage": 0
}]
"usr2var": []
}
*/

View File

@ -7,15 +7,15 @@ class Derived : public MiddleA, public MiddleB {};
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 3897841498936210886,
"detailed_name": "Root",
"qual_name_offset": 0,
"detailed_name": "class Root {}",
"qual_name_offset": 6,
"short_name": "Root",
"kind": 5,
"declarations": ["2:24-2:28|0|1|4", "3:24-3:28|0|1|4"],
"declarations": [],
"spell": "1:7-1:11|0|1|2",
"extent": "1:1-1:14|0|1|0",
"alias_of": 0,
@ -25,11 +25,11 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["2:24-2:28|0|1|4", "3:24-3:28|0|1|4"]
"uses": ["2:24-2:28|0|1|1028", "3:24-3:28|0|1|1028"]
}, {
"usr": 10963370434658308541,
"detailed_name": "Derived",
"qual_name_offset": 0,
"detailed_name": "class Derived : public MiddleA, public MiddleB {}",
"qual_name_offset": 6,
"short_name": "Derived",
"kind": 5,
"declarations": [],
@ -45,11 +45,11 @@ OUTPUT:
"uses": []
}, {
"usr": 11863524815063131483,
"detailed_name": "MiddleA",
"qual_name_offset": 0,
"detailed_name": "class MiddleA : public Root {}",
"qual_name_offset": 6,
"short_name": "MiddleA",
"kind": 5,
"declarations": ["4:24-4:31|0|1|4"],
"declarations": [],
"spell": "2:7-2:14|0|1|2",
"extent": "2:1-2:31|0|1|0",
"alias_of": 0,
@ -59,14 +59,14 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["4:24-4:31|0|1|4"]
"uses": ["4:24-4:31|0|1|1028"]
}, {
"usr": 14022569716337624303,
"detailed_name": "MiddleB",
"qual_name_offset": 0,
"detailed_name": "class MiddleB : public Root {}",
"qual_name_offset": 6,
"short_name": "MiddleB",
"kind": 5,
"declarations": ["4:40-4:47|0|1|4"],
"declarations": [],
"spell": "3:7-3:14|0|1|2",
"extent": "3:1-3:31|0|1|0",
"alias_of": 0,
@ -76,7 +76,7 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["4:40-4:47|0|1|4"]
"uses": ["4:40-4:47|0|1|1028"]
}],
"usr2var": []
}

View File

@ -9,18 +9,18 @@ class Derived : public Root {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 6666242542855173890,
"detailed_name": "void Derived::foo() override",
"detailed_name": "void Derived::foo()",
"qual_name_offset": 5,
"short_name": "foo",
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "5:8-5:11|10963370434658308541|2|2",
"spell": "5:8-5:11|10963370434658308541|2|2626",
"extent": "5:3-5:25|10963370434658308541|2|0",
"declaring_type": 10963370434658308541,
"declaring_type": 0,
"bases": [9948027785633571339],
"derived": [],
"vars": [],
@ -33,8 +33,8 @@ OUTPUT:
"short_name": "foo",
"kind": 6,
"storage": 0,
"declarations": ["2:16-2:19|3897841498936210886|2|1"],
"declaring_type": 3897841498936210886,
"declarations": ["2:16-2:19|3897841498936210886|2|577"],
"declaring_type": 0,
"bases": [],
"derived": [6666242542855173890],
"vars": [],
@ -43,11 +43,11 @@ OUTPUT:
}],
"usr2type": [{
"usr": 3897841498936210886,
"detailed_name": "Root",
"qual_name_offset": 0,
"detailed_name": "class Root {}",
"qual_name_offset": 6,
"short_name": "Root",
"kind": 5,
"declarations": ["4:24-4:28|0|1|4"],
"declarations": [],
"spell": "1:7-1:11|0|1|2",
"extent": "1:1-3:2|0|1|0",
"alias_of": 0,
@ -57,11 +57,11 @@ OUTPUT:
"funcs": [9948027785633571339],
"vars": [],
"instances": [],
"uses": ["4:24-4:28|0|1|4"]
"uses": ["4:24-4:28|0|1|1028"]
}, {
"usr": 10963370434658308541,
"detailed_name": "Derived",
"qual_name_offset": 0,
"detailed_name": "class Derived : public Root {}",
"qual_name_offset": 6,
"short_name": "Derived",
"kind": 5,
"declarations": [],

View File

@ -6,7 +6,7 @@ class IFoo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 3277829753446788562,
"detailed_name": "virtual void IFoo::foo() = 0",
@ -14,10 +14,8 @@ OUTPUT:
"short_name": "foo",
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "2:16-2:19|9949214233977131946|2|2",
"extent": "2:3-2:25|9949214233977131946|2|0",
"declaring_type": 9949214233977131946,
"declarations": ["2:16-2:19|9949214233977131946|2|577"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -26,8 +24,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 9949214233977131946,
"detailed_name": "IFoo",
"qual_name_offset": 0,
"detailed_name": "class IFoo {}",
"qual_name_offset": 6,
"short_name": "IFoo",
"kind": 5,
"declarations": [],

View File

@ -12,7 +12,7 @@ struct Derived : Base0, Base1 {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 8401779086123965305,
"detailed_name": "virtual Base1::~Base1() noexcept",
@ -21,26 +21,26 @@ OUTPUT:
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "5:11-5:17|15826803741381445676|2|2",
"spell": "5:11-5:12|15826803741381445676|2|578",
"extent": "5:3-5:23|15826803741381445676|2|0",
"declaring_type": 15826803741381445676,
"declaring_type": 0,
"bases": [],
"derived": [13164726294460837993],
"derived": [],
"vars": [],
"uses": [],
"callees": []
}, {
"usr": 13164726294460837993,
"detailed_name": "Derived::~Derived() noexcept override",
"detailed_name": "Derived::~Derived() noexcept",
"qual_name_offset": 0,
"short_name": "~Derived",
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "8:3-8:11|10963370434658308541|2|2",
"spell": "8:3-8:4|10963370434658308541|2|2626",
"extent": "8:3-8:26|10963370434658308541|2|0",
"declaring_type": 10963370434658308541,
"bases": [16347272523198263017, 8401779086123965305],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": [],
@ -53,22 +53,22 @@ OUTPUT:
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "2:11-2:17|11628904180681204356|2|2",
"spell": "2:11-2:12|11628904180681204356|2|578",
"extent": "2:3-2:23|11628904180681204356|2|0",
"declaring_type": 11628904180681204356,
"declaring_type": 0,
"bases": [],
"derived": [13164726294460837993],
"derived": [],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 10963370434658308541,
"detailed_name": "Derived",
"qual_name_offset": 0,
"detailed_name": "struct Derived : Base0, Base1 {}",
"qual_name_offset": 7,
"short_name": "Derived",
"kind": 23,
"declarations": ["8:4-8:11|0|1|4"],
"declarations": [],
"spell": "7:8-7:15|0|1|2",
"extent": "7:1-9:2|0|1|0",
"alias_of": 0,
@ -78,14 +78,14 @@ OUTPUT:
"funcs": [13164726294460837993],
"vars": [],
"instances": [],
"uses": []
"uses": ["8:4-8:11|0|1|4"]
}, {
"usr": 11628904180681204356,
"detailed_name": "Base0",
"qual_name_offset": 0,
"detailed_name": "struct Base0 {}",
"qual_name_offset": 7,
"short_name": "Base0",
"kind": 23,
"declarations": ["2:12-2:17|0|1|4", "7:18-7:23|0|1|4"],
"declarations": [],
"spell": "1:8-1:13|0|1|2",
"extent": "1:1-3:2|0|1|0",
"alias_of": 0,
@ -95,14 +95,14 @@ OUTPUT:
"funcs": [16347272523198263017],
"vars": [],
"instances": [],
"uses": ["7:18-7:23|0|1|4"]
"uses": ["2:12-2:17|0|1|4", "7:18-7:23|0|1|1028"]
}, {
"usr": 15826803741381445676,
"detailed_name": "Base1",
"qual_name_offset": 0,
"detailed_name": "struct Base1 {}",
"qual_name_offset": 7,
"short_name": "Base1",
"kind": 23,
"declarations": ["5:12-5:17|0|1|4", "7:25-7:30|0|1|4"],
"declarations": [],
"spell": "4:8-4:13|0|1|2",
"extent": "4:1-6:2|0|1|0",
"alias_of": 0,
@ -112,7 +112,7 @@ OUTPUT:
"funcs": [8401779086123965305],
"vars": [],
"instances": [],
"uses": ["7:25-7:30|0|1|4"]
"uses": ["5:12-5:17|0|1|4", "7:25-7:30|0|1|1028"]
}],
"usr2var": []
}

View File

@ -15,7 +15,7 @@ void foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",
@ -29,26 +29,26 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [12666114896600231317, 2981279427664991319],
"vars": [],
"uses": [],
"callees": ["9:14-9:15|17926497908620168464|3|32", "10:14-10:15|17926497908620168464|3|32", "11:14-11:15|17926497908620168464|3|32"]
"callees": []
}, {
"usr": 17926497908620168464,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"detailed_name": "inline void foo()::(anon class)::operator()(int y) const",
"qual_name_offset": 12,
"short_name": "operator()",
"kind": 6,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["9:14-9:15|4259594751088586730|3|32", "10:14-10:15|4259594751088586730|3|32", "11:14-11:15|4259594751088586730|3|32"],
"uses": ["9:14-9:15|14635009347499519042|2|8228", "10:14-10:15|14635009347499519042|2|8228", "11:14-11:15|14635009347499519042|2|8228"],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -60,7 +60,7 @@ OUTPUT:
"types": [],
"funcs": [],
"vars": [],
"instances": [12666114896600231317, 12879188959314906706],
"instances": [12666114896600231317],
"uses": []
}, {
"usr": 14635009347499519042,
@ -75,18 +75,19 @@ OUTPUT:
"types": [],
"funcs": [],
"vars": [],
"instances": [2981279427664991319],
"instances": [],
"uses": []
}],
"usr2var": [{
"usr": 2981279427664991319,
"detailed_name": "lambda dosomething",
"qual_name_offset": 7,
"detailed_name": "auto dosomething",
"qual_name_offset": 5,
"short_name": "dosomething",
"hover": "auto dosomething = [&x] (int y) {\n ++x;\n ++y;\n }\n",
"declarations": [],
"spell": "4:8-4:19|4259594751088586730|3|2",
"extent": "4:3-7:4|4259594751088586730|3|0",
"type": 14635009347499519042,
"type": 0,
"uses": ["9:3-9:14|4259594751088586730|3|4", "10:3-10:14|4259594751088586730|3|4", "11:3-11:14|4259594751088586730|3|4"],
"kind": 13,
"storage": 0
@ -98,20 +99,18 @@ OUTPUT:
"declarations": [],
"spell": "2:7-2:8|4259594751088586730|3|2",
"extent": "2:3-2:8|4259594751088586730|3|0",
"type": 17,
"uses": ["5:7-5:8|0|1|4", "4:24-4:25|4259594751088586730|3|4"],
"type": 53,
"uses": ["4:24-4:25|4259594751088586730|3|4", "5:7-5:8|4259594751088586730|3|28"],
"kind": 13,
"storage": 0
}, {
"usr": 12879188959314906706,
"detailed_name": "int y",
"qual_name_offset": 4,
"short_name": "",
"short_name": "y",
"declarations": [],
"spell": "4:31-4:32|4259594751088586730|3|2",
"extent": "4:27-4:32|4259594751088586730|3|0",
"type": 17,
"uses": ["6:7-6:8|4259594751088586730|3|4"],
"type": 0,
"uses": ["6:7-6:8|17926497908620168464|3|28"],
"kind": 253,
"storage": 0
}]

View File

@ -15,7 +15,7 @@ FOO(make1(), make2);
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 9720930732776154610,
"detailed_name": "int a()",
@ -23,15 +23,15 @@ OUTPUT:
"short_name": "a",
"kind": 12,
"storage": 0,
"declarations": ["12:1-12:20|0|1|1"],
"spell": "12:1-12:20|0|1|2",
"extent": "12:1-12:20|0|1|0",
"declarations": ["12:1-12:4|0|1|1"],
"spell": "12:1-12:4|0|1|2",
"extent": "1:1-1:1|0|1|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": ["12:5-12:10|14400399977994209582|3|32"]
"uses": ["2:7-2:8|0|1|64", "3:7-3:8|0|1|64"],
"callees": []
}, {
"usr": 14400399977994209582,
"detailed_name": "int make1()",
@ -46,11 +46,11 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["12:5-12:10|9720930732776154610|3|32"],
"uses": ["12:5-12:10|0|1|8228"],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -74,21 +74,21 @@ OUTPUT:
"declarations": [],
"spell": "9:11-9:16|0|1|2",
"extent": "9:1-9:20|0|1|0",
"type": 17,
"uses": ["12:14-12:19|9720930732776154610|3|4"],
"type": 53,
"uses": ["12:14-12:19|0|1|12"],
"kind": 13,
"storage": 0
}, {
"usr": 4261071340275951718,
"usr": 14219599523415845943,
"detailed_name": "FOO",
"qual_name_offset": 0,
"short_name": "FOO",
"hover": "#define FOO(aaa, bbb)\n int a();\n int a() { return aaa + bbb; }",
"hover": "#define FOO",
"declarations": [],
"spell": "1:9-1:12|0|1|2",
"extent": "1:9-3:32|0|1|0",
"extent": "1:9-1:12|0|1|2",
"type": 0,
"uses": ["12:1-12:4|0|1|4"],
"uses": ["12:1-12:20|0|1|4"],
"kind": 255,
"storage": 0
}]

View File

@ -11,7 +11,7 @@ int x = A;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 13788753348312146871,
"detailed_name": "Foo::Foo(Foo &&) = delete",
@ -20,9 +20,9 @@ OUTPUT:
"kind": 9,
"storage": 0,
"declarations": [],
"spell": "5:12-5:15|15041163540773201510|2|2",
"extent": "5:12-5:16|15041163540773201510|2|0",
"declaring_type": 15041163540773201510,
"spell": "5:12-5:15|15041163540773201510|2|514",
"extent": "1:1-1:1|15041163540773201510|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -30,7 +30,7 @@ OUTPUT:
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -46,11 +46,11 @@ OUTPUT:
"uses": []
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": ["5:12-5:15|0|1|4"],
"declarations": [],
"spell": "4:8-4:11|0|1|2",
"extent": "4:1-6:2|0|1|0",
"alias_of": 0,
@ -60,44 +60,44 @@ OUTPUT:
"funcs": [13788753348312146871],
"vars": [],
"instances": [],
"uses": ["5:12-5:15|15041163540773201510|2|4"]
"uses": ["5:12-5:15|0|1|4"]
}],
"usr2var": [{
"usr": 2056319845419860263,
"detailed_name": "DISALLOW",
"qual_name_offset": 0,
"short_name": "DISALLOW",
"hover": "#define DISALLOW(type) type(type&&) = delete;",
"declarations": [],
"spell": "2:9-2:17|0|1|2",
"extent": "2:9-2:46|0|1|0",
"type": 0,
"uses": ["5:3-5:11|0|1|4"],
"kind": 255,
"storage": 0
}, {
"usr": 7651988378939587454,
"usr": 1569772797058982873,
"detailed_name": "A",
"qual_name_offset": 0,
"short_name": "A",
"hover": "#define A 5",
"hover": "#define A",
"declarations": [],
"spell": "1:9-1:10|0|1|2",
"extent": "1:9-1:12|0|1|0",
"extent": "1:9-1:10|0|1|2",
"type": 0,
"uses": ["8:9-8:10|0|1|4"],
"kind": 255,
"storage": 0
}, {
"usr": 4904139678698066671,
"detailed_name": "DISALLOW",
"qual_name_offset": 0,
"short_name": "DISALLOW",
"hover": "#define DISALLOW",
"declarations": [],
"spell": "2:9-2:17|0|1|2",
"extent": "2:9-2:17|0|1|2",
"type": 0,
"uses": ["5:3-5:16|0|1|4"],
"kind": 255,
"storage": 0
}, {
"usr": 10677751717622394455,
"detailed_name": "int x",
"qual_name_offset": 4,
"short_name": "x",
"hover": "int x = A",
"hover": "int x = 5",
"declarations": [],
"spell": "8:5-8:6|0|1|2",
"extent": "8:1-8:10|0|1|0",
"type": 17,
"extent": "8:1-1:1|0|1|0",
"type": 53,
"uses": [],
"kind": 13,
"storage": 0

View File

@ -10,7 +10,7 @@ class Foo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 17922201480358737771,
"detailed_name": "void Foo::foo()",
@ -18,8 +18,8 @@ OUTPUT:
"short_name": "foo",
"kind": 6,
"storage": 0,
"declarations": ["2:8-2:11|15041163540773201510|2|1"],
"declaring_type": 15041163540773201510,
"declarations": ["2:8-2:11|15041163540773201510|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -28,8 +28,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],

View File

@ -8,7 +8,7 @@ void Foo::foo() const {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 6446764306530590711,
"detailed_name": "void Foo::foo() const",
@ -16,10 +16,10 @@ OUTPUT:
"short_name": "foo",
"kind": 6,
"storage": 0,
"declarations": ["2:8-2:11|15041163540773201510|2|1"],
"spell": "5:11-5:14|15041163540773201510|2|2",
"extent": "5:1-5:25|0|1|0",
"declaring_type": 15041163540773201510,
"declarations": ["2:8-2:11|15041163540773201510|2|513"],
"spell": "5:11-5:14|15041163540773201510|2|514",
"extent": "2:3-2:19|15041163540773201510|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -28,8 +28,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],

View File

@ -6,7 +6,7 @@ class Foo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 17922201480358737771,
"detailed_name": "void Foo::foo()",
@ -15,9 +15,9 @@ OUTPUT:
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "2:8-2:11|15041163540773201510|2|2",
"spell": "2:8-2:11|15041163540773201510|2|514",
"extent": "2:3-2:16|15041163540773201510|2|0",
"declaring_type": 15041163540773201510,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -26,8 +26,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],

View File

@ -9,13 +9,27 @@ enum Foo {
OUTPUT: funky_enum.h
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 16985894625255407295,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [439339022761937396, 15962370213938840720, 8524995777615948802],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 16985894625255407295,
"detailed_name": "Foo",
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "Foo",
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
@ -29,40 +43,43 @@ OUTPUT: funky_enum.h
}],
"usr2var": [{
"usr": 439339022761937396,
"detailed_name": "Foo::A",
"detailed_name": "A",
"qual_name_offset": 0,
"short_name": "A",
"hover": "Foo::A = 0",
"hover": "A = 0",
"comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.",
"declarations": [],
"spell": "4:1-4:2|16985894625255407295|2|2",
"spell": "4:1-4:2|16985894625255407295|2|514",
"extent": "4:1-4:2|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
}, {
"usr": 8524995777615948802,
"detailed_name": "Foo::C",
"detailed_name": "C",
"qual_name_offset": 0,
"short_name": "C",
"hover": "Foo::C = 2",
"hover": "C = 2",
"comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.",
"declarations": [],
"spell": "6:1-6:2|16985894625255407295|2|2",
"spell": "6:1-6:2|16985894625255407295|2|514",
"extent": "6:1-6:2|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
}, {
"usr": 15962370213938840720,
"detailed_name": "Foo::B",
"detailed_name": "B",
"qual_name_offset": 0,
"short_name": "B",
"hover": "Foo::B = 1",
"hover": "B = 1",
"comments": "This file cannot be built directory. It is included in an enum definition of\nanother file.",
"declarations": [],
"spell": "5:1-5:2|16985894625255407295|2|2",
"spell": "5:1-5:2|16985894625255407295|2|514",
"extent": "5:1-5:2|16985894625255407295|2|0",
"type": 16985894625255407295,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
@ -70,16 +87,13 @@ OUTPUT: funky_enum.h
}
OUTPUT: funky_enum.cc
{
"includes": [{
"line": 1,
"resolved_path": "&funky_enum.h"
}],
"skipped_by_preprocessor": [],
"includes": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 16985894625255407295,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "enum Foo {\n}",
"qual_name_offset": 5,
"short_name": "Foo",
"kind": 10,
"declarations": [],

View File

@ -8,8 +8,22 @@ void Impl() {
OUTPUT: header.h
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4481210672785600703,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [6141718166919284735, 17716334512218775320, 7285646116511901840],
"uses": [],
"callees": []
}, {
"usr": 11650481237659640387,
"detailed_name": "void Foo1()",
"qual_name_offset": 5,
@ -27,7 +41,7 @@ OUTPUT: header.h
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -43,10 +57,10 @@ OUTPUT: header.h
"uses": []
}, {
"usr": 529393482671181129,
"detailed_name": "Foo2",
"qual_name_offset": 0,
"detailed_name": "struct Foo2 {}",
"qual_name_offset": 7,
"short_name": "Foo2",
"kind": 5,
"kind": 23,
"declarations": [],
"spell": "13:8-13:12|0|1|2",
"extent": "13:1-13:15|0|1|0",
@ -60,11 +74,10 @@ OUTPUT: header.h
"uses": []
}, {
"usr": 619345544228965342,
"detailed_name": "Foo0",
"qual_name_offset": 0,
"detailed_name": "using Foo0 = SameFileDerived",
"qual_name_offset": 6,
"short_name": "Foo0",
"kind": 252,
"hover": "using Foo0 = SameFileDerived",
"declarations": [],
"spell": "7:7-7:11|0|1|2",
"extent": "7:1-7:29|0|1|0",
@ -75,11 +88,11 @@ OUTPUT: header.h
"funcs": [],
"vars": [],
"instances": [],
"uses": ["7:7-7:11|0|1|4"]
"uses": []
}, {
"usr": 4481210672785600703,
"detailed_name": "Foo3",
"qual_name_offset": 0,
"detailed_name": "enum Foo3 {\n}",
"qual_name_offset": 5,
"short_name": "Foo3",
"kind": 10,
"declarations": [],
@ -95,11 +108,11 @@ OUTPUT: header.h
"uses": []
}, {
"usr": 8420119006782424779,
"detailed_name": "Base",
"qual_name_offset": 0,
"detailed_name": "struct Base {}",
"qual_name_offset": 7,
"short_name": "Base",
"kind": 23,
"declarations": ["5:26-5:30|0|1|4"],
"declarations": [],
"spell": "3:8-3:12|0|1|2",
"extent": "3:1-3:15|0|1|0",
"alias_of": 0,
@ -109,11 +122,11 @@ OUTPUT: header.h
"funcs": [],
"vars": [],
"instances": [],
"uses": ["5:26-5:30|0|1|4"]
"uses": ["5:26-5:30|0|1|1028"]
}, {
"usr": 16750616846959666305,
"detailed_name": "SameFileDerived",
"qual_name_offset": 0,
"detailed_name": "struct SameFileDerived : Base {}",
"qual_name_offset": 7,
"short_name": "SameFileDerived",
"kind": 23,
"declarations": [],
@ -136,58 +149,58 @@ OUTPUT: header.h
"declarations": [],
"spell": "17:5-17:9|0|1|2",
"extent": "17:1-17:9|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0
}, {
"usr": 6141718166919284735,
"detailed_name": "Foo3::A",
"detailed_name": "A",
"qual_name_offset": 0,
"short_name": "A",
"hover": "Foo3::A = 0",
"hover": "A = 0",
"declarations": [],
"spell": "15:13-15:14|4481210672785600703|2|2",
"spell": "15:13-15:14|4481210672785600703|2|514",
"extent": "15:13-15:14|4481210672785600703|2|0",
"type": 4481210672785600703,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
}, {
"usr": 7285646116511901840,
"detailed_name": "Foo3::C",
"detailed_name": "C",
"qual_name_offset": 0,
"short_name": "C",
"hover": "Foo3::C = 2",
"hover": "C = 2",
"declarations": [],
"spell": "15:19-15:20|4481210672785600703|2|2",
"spell": "15:19-15:20|4481210672785600703|2|514",
"extent": "15:19-15:20|4481210672785600703|2|0",
"type": 4481210672785600703,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
}, {
"usr": 8395885290297540138,
"detailed_name": "int Foo5",
"qual_name_offset": 4,
"detailed_name": "static int Foo5",
"qual_name_offset": 11,
"short_name": "Foo5",
"declarations": [],
"spell": "18:12-18:16|0|1|2",
"extent": "18:1-18:16|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 2
}, {
"usr": 17716334512218775320,
"detailed_name": "Foo3::B",
"detailed_name": "B",
"qual_name_offset": 0,
"short_name": "B",
"hover": "Foo3::B = 1",
"hover": "B = 1",
"declarations": [],
"spell": "15:16-15:17|4481210672785600703|2|2",
"spell": "15:16-15:17|4481210672785600703|2|514",
"extent": "15:16-15:17|4481210672785600703|2|0",
"type": 4481210672785600703,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
@ -195,11 +208,8 @@ OUTPUT: header.h
}
OUTPUT: impl.cc
{
"includes": [{
"line": 0,
"resolved_path": "&header.h"
}],
"skipped_by_preprocessor": [],
"includes": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 5817708529036841195,
"detailed_name": "void Impl()",
@ -215,20 +225,20 @@ OUTPUT: impl.cc
"derived": [],
"vars": [],
"uses": [],
"callees": ["4:3-4:7|11650481237659640387|3|32"]
"callees": []
}, {
"usr": 11650481237659640387,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"detailed_name": "void Foo1()",
"qual_name_offset": 5,
"short_name": "Foo1",
"kind": 12,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["4:3-4:7|5817708529036841195|3|32"],
"uses": ["4:3-4:7|0|1|8228"],
"callees": []
}],
"usr2type": [],

View File

@ -8,7 +8,7 @@ void impl() {
OUTPUT: simple_header.h
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 16236105532929924676,
"detailed_name": "void header()",
@ -29,11 +29,8 @@ OUTPUT: simple_header.h
}
OUTPUT: simple_impl.cc
{
"includes": [{
"line": 0,
"resolved_path": "&simple_header.h"
}],
"skipped_by_preprocessor": [],
"includes": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 3373269392705484958,
"detailed_name": "void impl()",
@ -49,20 +46,20 @@ OUTPUT: simple_impl.cc
"derived": [],
"vars": [],
"uses": [],
"callees": ["4:3-4:9|16236105532929924676|3|32"]
"callees": []
}, {
"usr": 16236105532929924676,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"detailed_name": "void header()",
"qual_name_offset": 5,
"short_name": "header",
"kind": 12,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["4:3-4:9|3373269392705484958|3|32"],
"uses": ["4:3-4:9|0|1|8228"],
"callees": []
}],
"usr2type": [],

View File

@ -6,16 +6,16 @@ void Buffer::CreateSharedBuffer() {}
OUTPUT: static.h
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 14576076421851654759,
"detailed_name": "static void Buffer::CreateSharedBuffer()",
"qual_name_offset": 12,
"short_name": "CreateSharedBuffer",
"kind": 254,
"storage": 2,
"declarations": ["4:15-4:33|9411323049603567600|2|1"],
"declaring_type": 9411323049603567600,
"kind": 6,
"storage": 0,
"declarations": ["4:15-4:33|9411323049603567600|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -24,8 +24,8 @@ OUTPUT: static.h
}],
"usr2type": [{
"usr": 9411323049603567600,
"detailed_name": "Buffer",
"qual_name_offset": 0,
"detailed_name": "struct Buffer {}",
"qual_name_offset": 7,
"short_name": "Buffer",
"kind": 23,
"declarations": [],
@ -44,22 +44,19 @@ OUTPUT: static.h
}
OUTPUT: static.cc
{
"includes": [{
"line": 0,
"resolved_path": "&static.h"
}],
"skipped_by_preprocessor": [],
"includes": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 14576076421851654759,
"detailed_name": "void Buffer::CreateSharedBuffer()",
"qual_name_offset": 5,
"detailed_name": "static void Buffer::CreateSharedBuffer()",
"qual_name_offset": 12,
"short_name": "CreateSharedBuffer",
"kind": 254,
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "3:14-3:32|9411323049603567600|2|2",
"extent": "3:1-3:37|0|1|0",
"declaring_type": 9411323049603567600,
"spell": "3:14-3:32|9411323049603567600|2|514",
"extent": "4:3-4:35|9411323049603567600|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -68,10 +65,10 @@ OUTPUT: static.cc
}],
"usr2type": [{
"usr": 9411323049603567600,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"detailed_name": "struct Buffer {}",
"qual_name_offset": 7,
"short_name": "Buffer",
"kind": 23,
"declarations": [],
"alias_of": 0,
"bases": [],

View File

@ -6,7 +6,7 @@ void foo();
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 5010253035933134245,
"detailed_name": "void (anon ns)::foo()",
@ -15,7 +15,7 @@ OUTPUT:
"kind": 12,
"storage": 0,
"declarations": ["2:6-2:9|7144845543074395457|2|1"],
"declaring_type": 7144845543074395457,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],

View File

@ -6,7 +6,7 @@ void foo(int a, int b);
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 18343102288837190527,
"detailed_name": "void hello::foo(int a, int b)",
@ -14,8 +14,8 @@ OUTPUT:
"short_name": "foo",
"kind": 12,
"storage": 0,
"declarations": ["2:6-2:9|2029211996748007610|2|1"],
"declaring_type": 2029211996748007610,
"declarations": ["2:6-2:9|2029211996748007610|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -24,35 +24,18 @@ OUTPUT:
}],
"usr2type": [{
"usr": 2029211996748007610,
"detailed_name": "hello",
"qual_name_offset": 0,
"detailed_name": "namespace hello {\n}",
"qual_name_offset": 10,
"short_name": "hello",
"kind": 3,
"declarations": [],
"spell": "1:11-1:16|0|1|2",
"extent": "1:1-3:2|0|1|0",
"declarations": ["1:11-1:16|0|1|1"],
"alias_of": 0,
"bases": [13838176792705659279],
"bases": [],
"derived": [],
"types": [],
"funcs": [18343102288837190527],
"vars": [],
"instances": [],
"uses": ["1:11-1:16|0|1|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [2029211996748007610],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}],
"usr2var": []

View File

@ -6,7 +6,7 @@ void foo() {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 243328841292951622,
"detailed_name": "void hello::foo()",
@ -15,9 +15,9 @@ OUTPUT:
"kind": 12,
"storage": 0,
"declarations": [],
"spell": "2:6-2:9|2029211996748007610|2|2",
"spell": "2:6-2:9|2029211996748007610|2|514",
"extent": "2:1-2:14|2029211996748007610|2|0",
"declaring_type": 2029211996748007610,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -26,35 +26,18 @@ OUTPUT:
}],
"usr2type": [{
"usr": 2029211996748007610,
"detailed_name": "hello",
"qual_name_offset": 0,
"detailed_name": "namespace hello {\n}",
"qual_name_offset": 10,
"short_name": "hello",
"kind": 3,
"declarations": [],
"spell": "1:11-1:16|0|1|2",
"extent": "1:1-3:2|0|1|0",
"declarations": ["1:11-1:16|0|1|1"],
"alias_of": 0,
"bases": [13838176792705659279],
"bases": [],
"derived": [],
"types": [],
"funcs": [243328841292951622],
"vars": [],
"instances": [],
"uses": ["1:11-1:16|0|1|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [2029211996748007610],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}],
"usr2var": []

View File

@ -8,7 +8,7 @@ class Foo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 10487325150128053272,
"detailed_name": "void hello::Foo::foo()",
@ -16,8 +16,8 @@ OUTPUT:
"short_name": "foo",
"kind": 6,
"storage": 0,
"declarations": ["3:8-3:11|4508214972876735896|2|1"],
"declaring_type": 4508214972876735896,
"declarations": ["3:8-3:11|4508214972876735896|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -26,29 +26,27 @@ OUTPUT:
}],
"usr2type": [{
"usr": 2029211996748007610,
"detailed_name": "hello",
"qual_name_offset": 0,
"detailed_name": "namespace hello {\n}",
"qual_name_offset": 10,
"short_name": "hello",
"kind": 3,
"declarations": [],
"spell": "1:11-1:16|0|1|2",
"extent": "1:1-5:2|0|1|0",
"declarations": ["1:11-1:16|0|1|1"],
"alias_of": 0,
"bases": [13838176792705659279],
"bases": [],
"derived": [],
"types": [],
"types": [4508214972876735896],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["1:11-1:16|0|1|4"]
"uses": []
}, {
"usr": 4508214972876735896,
"detailed_name": "hello::Foo",
"qual_name_offset": 0,
"detailed_name": "class hello::Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
"spell": "2:7-2:10|2029211996748007610|2|2",
"spell": "2:7-2:10|2029211996748007610|2|514",
"extent": "2:1-4:2|2029211996748007610|2|0",
"alias_of": 0,
"bases": [],
@ -58,21 +56,6 @@ OUTPUT:
"vars": [],
"instances": [],
"uses": []
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [2029211996748007610],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}],
"usr2var": []
}

View File

@ -10,7 +10,7 @@ void Foo::foo() {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 10487325150128053272,
"detailed_name": "void hello::Foo::foo()",
@ -18,10 +18,10 @@ OUTPUT:
"short_name": "foo",
"kind": 6,
"storage": 0,
"declarations": ["3:8-3:11|4508214972876735896|2|1"],
"spell": "6:11-6:14|4508214972876735896|2|2",
"extent": "6:1-6:19|2029211996748007610|2|0",
"declaring_type": 4508214972876735896,
"declarations": ["3:8-3:11|4508214972876735896|2|513"],
"spell": "6:11-6:14|4508214972876735896|2|514",
"extent": "3:3-3:13|4508214972876735896|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -30,29 +30,27 @@ OUTPUT:
}],
"usr2type": [{
"usr": 2029211996748007610,
"detailed_name": "hello",
"qual_name_offset": 0,
"detailed_name": "namespace hello {\n}",
"qual_name_offset": 10,
"short_name": "hello",
"kind": 3,
"declarations": [],
"spell": "1:11-1:16|0|1|2",
"extent": "1:1-7:2|0|1|0",
"declarations": ["1:11-1:16|0|1|1"],
"alias_of": 0,
"bases": [13838176792705659279],
"bases": [],
"derived": [],
"types": [],
"types": [4508214972876735896],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["1:11-1:16|0|1|4"]
"uses": []
}, {
"usr": 4508214972876735896,
"detailed_name": "hello::Foo",
"qual_name_offset": 0,
"detailed_name": "class hello::Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
"spell": "2:7-2:10|2029211996748007610|2|2",
"spell": "2:7-2:10|2029211996748007610|2|514",
"extent": "2:1-4:2|2029211996748007610|2|0",
"alias_of": 0,
"bases": [],
@ -61,22 +59,7 @@ OUTPUT:
"funcs": [10487325150128053272],
"vars": [],
"instances": [],
"uses": ["6:6-6:9|0|1|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [2029211996748007610],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
"uses": ["6:6-6:9|2029211996748007610|2|4"]
}],
"usr2var": []
}

View File

@ -8,7 +8,7 @@ class Foo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 10487325150128053272,
"detailed_name": "void hello::Foo::foo()",
@ -17,9 +17,9 @@ OUTPUT:
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "3:8-3:11|4508214972876735896|2|2",
"spell": "3:8-3:11|4508214972876735896|2|514",
"extent": "3:3-3:16|4508214972876735896|2|0",
"declaring_type": 4508214972876735896,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -28,29 +28,27 @@ OUTPUT:
}],
"usr2type": [{
"usr": 2029211996748007610,
"detailed_name": "hello",
"qual_name_offset": 0,
"detailed_name": "namespace hello {\n}",
"qual_name_offset": 10,
"short_name": "hello",
"kind": 3,
"declarations": [],
"spell": "1:11-1:16|0|1|2",
"extent": "1:1-5:2|0|1|0",
"declarations": ["1:11-1:16|0|1|1"],
"alias_of": 0,
"bases": [13838176792705659279],
"bases": [],
"derived": [],
"types": [],
"types": [4508214972876735896],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["1:11-1:16|0|1|4"]
"uses": []
}, {
"usr": 4508214972876735896,
"detailed_name": "hello::Foo",
"qual_name_offset": 0,
"detailed_name": "class hello::Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
"spell": "2:7-2:10|2029211996748007610|2|2",
"spell": "2:7-2:10|2029211996748007610|2|514",
"extent": "2:1-4:2|2029211996748007610|2|0",
"alias_of": 0,
"bases": [],
@ -60,21 +58,6 @@ OUTPUT:
"vars": [],
"instances": [],
"uses": []
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [2029211996748007610],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}],
"usr2var": []
}

View File

@ -17,7 +17,7 @@ void func() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 10818727483146447186,
"detailed_name": "void func()",
@ -31,12 +31,26 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [6030927277961448585, 7657277353101371136],
"vars": [],
"uses": [],
"callees": []
}, {
"usr": 14450849931009540802,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [15042442838933090518],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -52,90 +66,64 @@ OUTPUT:
"uses": []
}, {
"usr": 926793467007732869,
"detailed_name": "foo",
"qual_name_offset": 0,
"detailed_name": "namespace foo {\n}",
"qual_name_offset": 10,
"short_name": "foo",
"kind": 3,
"declarations": [],
"spell": "1:11-1:14|0|1|2",
"extent": "1:1-7:2|0|1|0",
"declarations": ["1:11-1:14|0|1|1"],
"alias_of": 0,
"bases": [13838176792705659279],
"derived": [17805385787823406700],
"types": [],
"bases": [],
"derived": [],
"types": [17805385787823406700],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["1:11-1:14|0|1|4", "9:17-9:20|0|1|4", "12:11-12:14|10818727483146447186|3|4"]
"uses": ["9:17-9:20|0|1|4", "12:11-12:14|0|1|4"]
}, {
"usr": 11879713791858506216,
"detailed_name": "fbz",
"qual_name_offset": 0,
"detailed_name": "namespace fbz = foo::bar::baz",
"qual_name_offset": 10,
"short_name": "fbz",
"kind": 0,
"declarations": [],
"spell": "9:11-9:14|0|1|2",
"extent": "9:1-9:30|0|1|0",
"alias_of": 0,
"kind": 252,
"declarations": ["9:11-9:14|0|1|1"],
"alias_of": 14450849931009540802,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["13:11-13:14|10818727483146447186|3|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [926793467007732869],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
"uses": ["13:11-13:14|0|1|4"]
}, {
"usr": 14450849931009540802,
"detailed_name": "foo::bar::baz",
"qual_name_offset": 0,
"detailed_name": "namespace foo::bar::baz {\n}",
"qual_name_offset": 10,
"short_name": "baz",
"kind": 3,
"declarations": [],
"spell": "3:20-3:23|17805385787823406700|2|2",
"extent": "3:10-5:11|17805385787823406700|2|0",
"declarations": ["3:20-3:23|17805385787823406700|2|513"],
"alias_of": 0,
"bases": [17805385787823406700],
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [{
"L": 15042442838933090518,
"R": -1
}],
"instances": [],
"uses": ["3:20-3:23|17805385787823406700|2|4", "9:27-9:30|0|1|4", "12:21-12:24|10818727483146447186|3|4"]
}, {
"usr": 17805385787823406700,
"detailed_name": "foo::bar",
"qual_name_offset": 0,
"short_name": "bar",
"kind": 3,
"declarations": [],
"spell": "2:15-2:18|926793467007732869|2|2",
"extent": "2:5-6:6|926793467007732869|2|0",
"alias_of": 0,
"bases": [926793467007732869],
"derived": [14450849931009540802],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["2:15-2:18|926793467007732869|2|4", "9:22-9:25|0|1|4", "12:16-12:19|10818727483146447186|3|4"]
"uses": ["9:27-9:30|17805385787823406700|2|4", "12:21-12:24|17805385787823406700|2|4"]
}, {
"usr": 17805385787823406700,
"detailed_name": "namespace foo::bar {\n}",
"qual_name_offset": 10,
"short_name": "bar",
"kind": 3,
"declarations": ["2:15-2:18|926793467007732869|2|513"],
"alias_of": 0,
"bases": [],
"derived": [],
"types": [14450849931009540802],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["9:22-9:25|926793467007732869|2|4", "12:16-12:19|926793467007732869|2|4"]
}],
"usr2var": [{
"usr": 6030927277961448585,
@ -146,7 +134,7 @@ OUTPUT:
"declarations": [],
"spell": "12:7-12:8|10818727483146447186|3|2",
"extent": "12:3-12:29|10818727483146447186|3|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0
@ -159,7 +147,7 @@ OUTPUT:
"declarations": [],
"spell": "13:7-13:8|10818727483146447186|3|2",
"extent": "13:3-13:19|10818727483146447186|3|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0
@ -170,10 +158,10 @@ OUTPUT:
"short_name": "qux",
"hover": "int foo::bar::baz::qux = 42",
"declarations": [],
"spell": "4:18-4:21|14450849931009540802|2|2",
"spell": "4:18-4:21|14450849931009540802|2|514",
"extent": "4:14-4:26|14450849931009540802|2|0",
"type": 17,
"uses": ["12:26-12:29|0|1|4", "13:16-13:19|0|1|4"],
"type": 53,
"uses": ["12:26-12:29|14450849931009540802|2|12", "13:16-13:19|14450849931009540802|2|12"],
"kind": 13,
"storage": 0
}]

View File

@ -13,7 +13,7 @@ void Runner() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 631910859630953711,
"detailed_name": "void Runner()",
@ -29,7 +29,21 @@ OUTPUT:
"derived": [],
"vars": [],
"uses": [],
"callees": ["7:7-7:13|17328473273923617489|3|32", "9:3-9:9|17328473273923617489|3|32"]
"callees": []
}, {
"usr": 11072669167287398027,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [12898699035586282159],
"uses": [],
"callees": []
}, {
"usr": 17328473273923617489,
"detailed_name": "void ns::Accept(int a)",
@ -38,17 +52,17 @@ OUTPUT:
"kind": 12,
"storage": 0,
"declarations": [],
"spell": "3:8-3:14|11072669167287398027|2|2",
"spell": "3:8-3:14|11072669167287398027|2|514",
"extent": "3:3-3:24|11072669167287398027|2|0",
"declaring_type": 11072669167287398027,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [3649375698083002347],
"uses": ["7:7-7:13|631910859630953711|3|32", "9:3-9:9|631910859630953711|3|32"],
"vars": [],
"uses": ["7:7-7:13|11072669167287398027|2|8228", "9:3-9:9|11072669167287398027|2|8228"],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -64,39 +78,19 @@ OUTPUT:
"uses": []
}, {
"usr": 11072669167287398027,
"detailed_name": "ns",
"qual_name_offset": 0,
"detailed_name": "namespace ns {\n}",
"qual_name_offset": 10,
"short_name": "ns",
"kind": 3,
"declarations": [],
"spell": "1:11-1:13|0|1|2",
"extent": "1:1-4:2|0|1|0",
"declarations": ["1:11-1:13|0|1|1"],
"alias_of": 0,
"bases": [13838176792705659279],
"bases": [],
"derived": [],
"types": [],
"funcs": [17328473273923617489],
"vars": [{
"L": 12898699035586282159,
"R": -1
}],
"instances": [],
"uses": ["1:11-1:13|0|1|4", "7:3-7:5|631910859630953711|3|4", "7:14-7:16|631910859630953711|3|4", "8:19-8:21|631910859630953711|3|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [11072669167287398027],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
"uses": ["7:3-7:5|0|1|4", "7:14-7:16|0|1|4", "8:19-8:21|0|1|4"]
}],
"usr2var": [{
"usr": 3649375698083002347,
@ -104,9 +98,9 @@ OUTPUT:
"qual_name_offset": 4,
"short_name": "a",
"declarations": [],
"spell": "3:19-3:20|17328473273923617489|3|2",
"spell": "3:19-3:20|17328473273923617489|3|514",
"extent": "3:15-3:20|17328473273923617489|3|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 253,
"storage": 0
@ -116,10 +110,10 @@ OUTPUT:
"qual_name_offset": 4,
"short_name": "Foo",
"declarations": [],
"spell": "2:7-2:10|11072669167287398027|2|2",
"spell": "2:7-2:10|11072669167287398027|2|514",
"extent": "2:3-2:10|11072669167287398027|2|0",
"type": 17,
"uses": ["7:18-7:21|631910859630953711|3|4", "9:10-9:13|631910859630953711|3|4"],
"type": 53,
"uses": ["7:18-7:21|11072669167287398027|2|12", "9:10-9:13|11072669167287398027|2|12"],
"kind": 13,
"storage": 0
}]

View File

@ -10,7 +10,7 @@ Foo &operator += (const Foo&, const int&);
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 3545323327609582678,
"detailed_name": "void Foo::operator()(bool)",
@ -18,8 +18,8 @@ OUTPUT:
"short_name": "operator()",
"kind": 6,
"storage": 0,
"declarations": ["3:8-3:18|15041163540773201510|2|1"],
"declaring_type": 15041163540773201510,
"declarations": ["3:8-3:16|15041163540773201510|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -32,8 +32,8 @@ OUTPUT:
"short_name": "operator()",
"kind": 6,
"storage": 0,
"declarations": ["4:7-4:17|15041163540773201510|2|1"],
"declaring_type": 15041163540773201510,
"declarations": ["4:7-4:15|15041163540773201510|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -47,9 +47,9 @@ OUTPUT:
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "2:8-2:18|15041163540773201510|2|2",
"spell": "2:8-2:16|15041163540773201510|2|514",
"extent": "2:3-2:27|15041163540773201510|2|0",
"declaring_type": 15041163540773201510,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -62,7 +62,7 @@ OUTPUT:
"short_name": "operator+=",
"kind": 12,
"storage": 0,
"declarations": ["7:6-7:17|0|1|1"],
"declarations": ["7:6-7:14|0|1|1"],
"declaring_type": 0,
"bases": [],
"derived": [],
@ -72,8 +72,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],

View File

@ -10,16 +10,16 @@ void Foo::Register(Manager* m) {
OUTPUT: static_function_in_type.h
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 17019747379608639279,
"detailed_name": "static void ns::Foo::Register(ns::Manager *)",
"qual_name_offset": 12,
"short_name": "Register",
"kind": 254,
"storage": 2,
"declarations": ["6:15-6:23|17262466801709381811|2|1"],
"declaring_type": 17262466801709381811,
"kind": 6,
"storage": 0,
"declarations": ["6:15-6:23|17262466801709381811|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -28,11 +28,11 @@ OUTPUT: static_function_in_type.h
}],
"usr2type": [{
"usr": 1972401196751872203,
"detailed_name": "ns::Manager",
"qual_name_offset": 0,
"detailed_name": "class ns::Manager",
"qual_name_offset": 6,
"short_name": "Manager",
"kind": 5,
"declarations": ["3:7-3:14|11072669167287398027|2|1"],
"declarations": ["3:7-3:14|11072669167287398027|2|513"],
"alias_of": 0,
"bases": [],
"derived": [],
@ -40,47 +40,30 @@ OUTPUT: static_function_in_type.h
"funcs": [],
"vars": [],
"instances": [],
"uses": ["6:24-6:31|0|1|4"]
"uses": ["6:24-6:31|11072669167287398027|2|4"]
}, {
"usr": 11072669167287398027,
"detailed_name": "ns",
"qual_name_offset": 0,
"detailed_name": "namespace ns {\n}",
"qual_name_offset": 10,
"short_name": "ns",
"kind": 3,
"declarations": [],
"spell": "1:11-1:13|0|1|2",
"extent": "1:1-9:2|0|1|0",
"alias_of": 0,
"bases": [13838176792705659279],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["1:11-1:13|0|1|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"declarations": ["1:11-1:13|0|1|1"],
"alias_of": 0,
"bases": [],
"derived": [11072669167287398027],
"types": [],
"derived": [],
"types": [1972401196751872203, 17262466801709381811],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}, {
"usr": 17262466801709381811,
"detailed_name": "ns::Foo",
"qual_name_offset": 0,
"detailed_name": "struct ns::Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
"spell": "5:8-5:11|11072669167287398027|2|2",
"spell": "5:8-5:11|11072669167287398027|2|514",
"extent": "5:1-7:2|11072669167287398027|2|0",
"alias_of": 0,
"bases": [],
@ -95,34 +78,31 @@ OUTPUT: static_function_in_type.h
}
OUTPUT: static_function_in_type.cc
{
"includes": [{
"line": 0,
"resolved_path": "&static_function_in_type.h"
}],
"skipped_by_preprocessor": [],
"includes": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 17019747379608639279,
"detailed_name": "void ns::Foo::Register(ns::Manager *m)",
"qual_name_offset": 5,
"detailed_name": "static void ns::Foo::Register(ns::Manager *)",
"qual_name_offset": 12,
"short_name": "Register",
"kind": 254,
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "5:11-5:19|17262466801709381811|2|2",
"extent": "5:1-6:2|11072669167287398027|2|0",
"declaring_type": 17262466801709381811,
"spell": "5:11-5:19|17262466801709381811|2|514",
"extent": "6:3-6:33|17262466801709381811|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [13569879755236306838],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 1972401196751872203,
"detailed_name": "ns::Manager",
"qual_name_offset": 0,
"detailed_name": "class ns::Manager",
"qual_name_offset": 6,
"short_name": "Manager",
"kind": 0,
"kind": 5,
"declarations": [],
"alias_of": 0,
"bases": [],
@ -131,34 +111,17 @@ OUTPUT: static_function_in_type.cc
"funcs": [],
"vars": [],
"instances": [13569879755236306838],
"uses": ["5:20-5:27|0|1|4"]
"uses": ["5:20-5:27|11072669167287398027|2|4"]
}, {
"usr": 11072669167287398027,
"detailed_name": "ns",
"qual_name_offset": 0,
"detailed_name": "namespace ns {\n}",
"qual_name_offset": 10,
"short_name": "ns",
"kind": 3,
"declarations": [],
"spell": "3:11-3:13|0|1|2",
"extent": "3:1-7:2|0|1|0",
"alias_of": 0,
"bases": [13838176792705659279],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["3:11-3:13|0|1|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"declarations": ["3:11-3:13|0|1|1"],
"alias_of": 0,
"bases": [],
"derived": [11072669167287398027],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
@ -166,10 +129,10 @@ OUTPUT: static_function_in_type.cc
"uses": []
}, {
"usr": 17262466801709381811,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"detailed_name": "struct ns::Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
"alias_of": 0,
"bases": [],
@ -178,7 +141,7 @@ OUTPUT: static_function_in_type.cc
"funcs": [17019747379608639279],
"vars": [],
"instances": [],
"uses": ["5:6-5:9|0|1|4"]
"uses": ["5:6-5:9|11072669167287398027|2|4"]
}],
"usr2var": [{
"usr": 13569879755236306838,
@ -186,7 +149,7 @@ OUTPUT: static_function_in_type.cc
"qual_name_offset": 13,
"short_name": "m",
"declarations": [],
"spell": "5:29-5:30|17019747379608639279|3|2",
"spell": "5:29-5:30|17019747379608639279|3|514",
"extent": "5:20-5:30|17019747379608639279|3|0",
"type": 1972401196751872203,
"uses": [],

View File

@ -7,18 +7,18 @@
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [],
"usr2var": [{
"usr": 11674328179498211370,
"usr": 14219599523415845943,
"detailed_name": "FOO",
"qual_name_offset": 0,
"short_name": "FOO",
"hover": "#define FOO",
"declarations": [],
"spell": "2:9-2:12|0|1|2",
"extent": "2:9-2:12|0|1|0",
"extent": "2:9-2:12|0|1|2",
"type": 0,
"uses": [],
"kind": 255,

View File

@ -17,7 +17,7 @@ void hello();
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": ["2:1-4:7", "6:1-10:7", "12:1-14:7"],
"skipped_ranges": ["2:1-5:1", "6:1-11:1", "12:1-15:1"],
"usr2func": [],
"usr2type": [],
"usr2var": []

View File

@ -11,7 +11,7 @@ void Foo::Bar(Template<double>&) {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 8412238651648388423,
"detailed_name": "void Foo::Bar(Template<double> &)",
@ -19,10 +19,10 @@ OUTPUT:
"short_name": "Bar",
"kind": 6,
"storage": 0,
"declarations": ["5:8-5:11|15041163540773201510|2|1"],
"spell": "8:11-8:14|15041163540773201510|2|2",
"extent": "8:1-8:36|0|1|0",
"declaring_type": 15041163540773201510,
"declarations": ["5:8-5:11|15041163540773201510|2|513"],
"spell": "8:11-8:14|15041163540773201510|2|514",
"extent": "5:3-5:30|15041163540773201510|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -31,8 +31,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
@ -48,8 +48,8 @@ OUTPUT:
"uses": ["8:6-8:9|0|1|4"]
}, {
"usr": 17107291254533526269,
"detailed_name": "Template",
"qual_name_offset": 0,
"detailed_name": "class Template {}",
"qual_name_offset": 6,
"short_name": "Template",
"kind": 5,
"declarations": [],

View File

@ -18,10 +18,38 @@ namespace ns {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 11072669167287398027,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [12898699035586282159, 9008550860229740818],
"uses": [],
"callees": []
}, {
"usr": 12688716854043726585,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [4731849186641714451, 4731849186641714451],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -37,12 +65,12 @@ OUTPUT:
"uses": []
}, {
"usr": 1532099849728741556,
"detailed_name": "ns::VarType",
"qual_name_offset": 0,
"detailed_name": "enum ns::VarType {\n}",
"qual_name_offset": 5,
"short_name": "VarType",
"kind": 10,
"declarations": [],
"spell": "2:8-2:15|11072669167287398027|2|2",
"spell": "2:8-2:15|11072669167287398027|2|514",
"extent": "2:3-2:18|11072669167287398027|2|0",
"alias_of": 0,
"bases": [],
@ -50,95 +78,54 @@ OUTPUT:
"types": [],
"funcs": [],
"vars": [],
"instances": [4731849186641714451],
"uses": ["6:22-6:29|0|1|4", "6:44-6:51|0|1|4", "10:18-10:25|0|1|4"]
"instances": [4731849186641714451, 4731849186641714451],
"uses": ["6:22-6:29|11072669167287398027|2|4", "6:44-6:51|11072669167287398027|2|4", "10:18-10:25|11072669167287398027|2|4"]
}, {
"usr": 2205716167465743256,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"usr": 11072669167287398027,
"detailed_name": "namespace ns {\n}",
"qual_name_offset": 10,
"short_name": "ns",
"kind": 3,
"declarations": ["1:11-1:13|0|1|1"],
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"types": [1532099849728741556, 12688716854043726585],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["10:33-10:34|0|1|4"]
}, {
"usr": 11072669167287398027,
"detailed_name": "ns",
"qual_name_offset": 0,
"short_name": "ns",
"kind": 3,
"declarations": [],
"spell": "1:11-1:13|0|1|2",
"extent": "1:1-15:2|0|1|0",
"alias_of": 0,
"bases": [13838176792705659279],
"derived": [],
"types": [],
"funcs": [],
"vars": [{
"L": 12898699035586282159,
"R": -1
}, {
"L": 9008550860229740818,
"R": -1
}],
"instances": [],
"uses": ["1:11-1:13|0|1|4"]
"uses": []
}, {
"usr": 12688716854043726585,
"detailed_name": "ns::Holder",
"qual_name_offset": 0,
"detailed_name": "struct ns::Holder {}",
"qual_name_offset": 7,
"short_name": "Holder",
"kind": 5,
"kind": 23,
"declarations": [],
"spell": "5:10-5:16|11072669167287398027|2|2",
"spell": "5:10-5:16|11072669167287398027|2|514",
"extent": "5:3-7:4|11072669167287398027|2|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [{
"L": 4731849186641714451,
"R": -1
}],
"instances": [],
"uses": ["10:26-10:32|0|1|4", "13:13-13:19|0|1|4", "14:14-14:20|0|1|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [11072669167287398027],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
"uses": ["10:26-10:32|11072669167287398027|2|4", "13:13-13:19|11072669167287398027|2|4", "14:14-14:20|11072669167287398027|2|4"]
}],
"usr2var": [{
"usr": 4731849186641714451,
"detailed_name": "const ns::VarType ns::Holder::static_var",
"qual_name_offset": 18,
"detailed_name": "static constexpr ns::VarType ns::Holder::static_var",
"qual_name_offset": 29,
"short_name": "static_var",
"hover": "const ns::VarType ns::Holder::static_var = (VarType)0x0",
"declarations": ["6:30-6:40|12688716854043726585|2|1"],
"spell": "10:37-10:47|12688716854043726585|2|2",
"extent": "9:3-10:47|11072669167287398027|2|0",
"hover": "static constexpr ns::VarType ns::Holder::static_var = (ns::VarType)0",
"declarations": ["6:30-6:40|12688716854043726585|2|513"],
"spell": "10:37-10:47|12688716854043726585|2|514",
"extent": "6:5-6:55|12688716854043726585|2|0",
"type": 1532099849728741556,
"uses": ["13:26-13:36|0|1|4", "14:27-14:37|0|1|4"],
"kind": 8,
"storage": 0
"uses": ["13:26-13:36|12688716854043726585|2|12", "14:27-14:37|12688716854043726585|2|12"],
"kind": 13,
"storage": 2
}, {
"usr": 9008550860229740818,
"detailed_name": "int ns::Foo2",
@ -146,9 +133,9 @@ OUTPUT:
"short_name": "Foo2",
"hover": "int ns::Foo2 = Holder<int>::static_var",
"declarations": [],
"spell": "14:7-14:11|11072669167287398027|2|2",
"spell": "14:7-14:11|11072669167287398027|2|514",
"extent": "14:3-14:37|11072669167287398027|2|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0
@ -159,9 +146,9 @@ OUTPUT:
"short_name": "Foo",
"hover": "int ns::Foo = Holder<int>::static_var",
"declarations": [],
"spell": "13:7-13:10|11072669167287398027|2|2",
"spell": "13:7-13:10|11072669167287398027|2|514",
"extent": "13:3-13:36|11072669167287398027|2|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0

View File

@ -24,7 +24,7 @@ EXTRA_FLAGS:
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 6875364467121018690,
"detailed_name": "void foo()",
@ -41,6 +41,20 @@ OUTPUT:
"vars": [],
"uses": [],
"callees": []
}, {
"usr": 8402783583255987702,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [5866801090710377175],
"uses": [],
"callees": []
}, {
"usr": 8905286151237717330,
"detailed_name": "void C::bar()",
@ -48,8 +62,8 @@ OUTPUT:
"short_name": "bar",
"kind": 6,
"storage": 0,
"declarations": ["4:8-4:11|8402783583255987702|2|1"],
"declaring_type": 8402783583255987702,
"declarations": ["4:8-4:11|8402783583255987702|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -58,10 +72,10 @@ OUTPUT:
}],
"usr2type": [{
"usr": 8402783583255987702,
"detailed_name": "C",
"qual_name_offset": 0,
"detailed_name": "struct C {}",
"qual_name_offset": 7,
"short_name": "C",
"kind": 5,
"kind": 23,
"declarations": [],
"spell": "2:8-2:9|0|1|2",
"extent": "2:1-5:2|0|1|0",
@ -76,23 +90,6 @@ OUTPUT:
}],
"instances": [],
"uses": []
}, {
"usr": 14750650276757822712,
"detailed_name": "T",
"qual_name_offset": 0,
"short_name": "T",
"kind": 26,
"declarations": [],
"spell": "1:17-1:18|0|1|2",
"extent": "1:11-1:18|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["3:3-3:4|0|1|4"]
}],
"usr2var": [{
"usr": 5866801090710377175,
@ -100,7 +97,7 @@ OUTPUT:
"qual_name_offset": 2,
"short_name": "x",
"declarations": [],
"spell": "3:5-3:6|8402783583255987702|2|2",
"spell": "3:5-3:6|8402783583255987702|2|514",
"extent": "3:3-3:6|8402783583255987702|2|0",
"type": 0,
"uses": [],

View File

@ -15,26 +15,40 @@ namespace ns {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 8221803074608342407,
"detailed_name": "static int ns::Foo::foo()",
"qual_name_offset": 11,
"short_name": "foo",
"kind": 254,
"storage": 2,
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "5:16-5:19|14042997404480181958|2|2",
"spell": "5:16-5:19|14042997404480181958|2|514",
"extent": "5:5-7:6|14042997404480181958|2|0",
"declaring_type": 14042997404480181958,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["10:21-10:24|11072669167287398027|2|32", "11:22-11:25|11072669167287398027|2|32"],
"uses": ["10:21-10:24|14042997404480181958|2|36", "11:22-11:25|14042997404480181958|2|36"],
"callees": []
}, {
"usr": 11072669167287398027,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [15768138241775955040, 3182917058194750998],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -50,50 +64,27 @@ OUTPUT:
"uses": []
}, {
"usr": 11072669167287398027,
"detailed_name": "ns",
"qual_name_offset": 0,
"detailed_name": "namespace ns {\n}",
"qual_name_offset": 10,
"short_name": "ns",
"kind": 3,
"declarations": [],
"spell": "1:11-1:13|0|1|2",
"extent": "1:1-12:2|0|1|0",
"alias_of": 0,
"bases": [13838176792705659279],
"derived": [],
"types": [],
"funcs": [],
"vars": [{
"L": 15768138241775955040,
"R": -1
}, {
"L": 3182917058194750998,
"R": -1
}],
"instances": [],
"uses": ["1:11-1:13|0|1|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"declarations": ["1:11-1:13|0|1|1"],
"alias_of": 0,
"bases": [],
"derived": [11072669167287398027],
"types": [],
"derived": [],
"types": [14042997404480181958],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}, {
"usr": 14042997404480181958,
"detailed_name": "ns::Foo",
"qual_name_offset": 0,
"detailed_name": "struct ns::Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 5,
"kind": 23,
"declarations": [],
"spell": "3:10-3:13|11072669167287398027|2|2",
"spell": "3:10-3:13|11072669167287398027|2|514",
"extent": "3:3-8:4|11072669167287398027|2|0",
"alias_of": 0,
"bases": [],
@ -102,7 +93,7 @@ OUTPUT:
"funcs": [8221803074608342407],
"vars": [],
"instances": [],
"uses": ["10:11-10:14|0|1|4", "11:11-11:14|0|1|4"]
"uses": ["10:11-10:14|11072669167287398027|2|4", "11:11-11:14|11072669167287398027|2|4"]
}],
"usr2var": [{
"usr": 3182917058194750998,
@ -111,9 +102,9 @@ OUTPUT:
"short_name": "b",
"hover": "int ns::b = Foo<bool>::foo<double>()",
"declarations": [],
"spell": "11:7-11:8|11072669167287398027|2|2",
"spell": "11:7-11:8|11072669167287398027|2|514",
"extent": "11:3-11:35|11072669167287398027|2|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0
@ -124,9 +115,9 @@ OUTPUT:
"short_name": "a",
"hover": "int ns::a = Foo<int>::foo<float>()",
"declarations": [],
"spell": "10:7-10:8|11072669167287398027|2|2",
"spell": "10:7-10:8|11072669167287398027|2|514",
"extent": "10:3-10:33|11072669167287398027|2|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0

View File

@ -10,54 +10,45 @@ namespace ns {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"usr2type": [{
"skipped_ranges": [],
"usr2func": [{
"usr": 11072669167287398027,
"detailed_name": "ns",
"qual_name_offset": 0,
"short_name": "ns",
"kind": 3,
"declarations": [],
"spell": "1:11-1:13|0|1|2",
"extent": "1:1-7:2|0|1|0",
"alias_of": 0,
"bases": [13838176792705659279],
"derived": [],
"types": [],
"funcs": [],
"vars": [{
"L": 15768138241775955040,
"R": -1
}, {
"L": 3182917058194750998,
"R": -1
}],
"instances": [],
"uses": ["1:11-1:13|0|1|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [15768138241775955040, 3182917058194750998],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 11072669167287398027,
"detailed_name": "namespace ns {\n}",
"qual_name_offset": 10,
"short_name": "ns",
"kind": 3,
"declarations": ["1:11-1:13|0|1|1"],
"alias_of": 0,
"bases": [],
"derived": [11072669167287398027],
"types": [],
"derived": [],
"types": [14042997404480181958],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}, {
"usr": 14042997404480181958,
"detailed_name": "ns::Foo",
"qual_name_offset": 0,
"detailed_name": "class ns::Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
"spell": "3:9-3:12|11072669167287398027|2|2",
"spell": "3:9-3:12|11072669167287398027|2|514",
"extent": "3:3-3:15|11072669167287398027|2|0",
"alias_of": 0,
"bases": [],
@ -66,15 +57,15 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [15768138241775955040, 3182917058194750998],
"uses": ["5:3-5:6|0|1|4", "6:3-6:6|0|1|4"]
"uses": ["5:3-5:6|11072669167287398027|2|4", "6:3-6:6|11072669167287398027|2|4"]
}],
"usr2var": [{
"usr": 3182917058194750998,
"detailed_name": "Foo<bool> ns::b",
"qual_name_offset": 10,
"detailed_name": "Foo<ns::bool> b",
"qual_name_offset": 4,
"short_name": "b",
"declarations": [],
"spell": "6:13-6:14|11072669167287398027|2|2",
"spell": "6:13-6:14|11072669167287398027|2|514",
"extent": "6:3-6:14|11072669167287398027|2|0",
"type": 14042997404480181958,
"uses": [],
@ -86,7 +77,7 @@ OUTPUT:
"qual_name_offset": 9,
"short_name": "a",
"declarations": [],
"spell": "5:12-5:13|11072669167287398027|2|2",
"spell": "5:12-5:13|11072669167287398027|2|514",
"extent": "5:3-5:13|11072669167287398027|2|0",
"type": 14042997404480181958,
"uses": [],

View File

@ -46,21 +46,49 @@ void foo<float, 9, Enum0, kOnst + 7>(float Value);
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 6113470698424012876,
"detailed_name": "void vector<Z2, allocator<Z2> >::clear()",
"qual_name_offset": 31,
"short_name": "clear",
"kind": 6,
"usr": 3861597222587452538,
"detailed_name": "template<> void foo<float, 9, Enum0, 14>(float Value)",
"qual_name_offset": 16,
"short_name": "foo",
"kind": 12,
"storage": 0,
"declarations": ["27:8-27:13|1663022413889915338|2|1"],
"declaring_type": 1663022413889915338,
"declarations": ["43:6-43:9|0|1|1"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": []
}, {
"usr": 6113470698424012876,
"detailed_name": "void vector<Z2, allocator<Z2> >::clear()",
"qual_name_offset": 5,
"short_name": "clear",
"kind": 6,
"storage": 0,
"declarations": ["27:8-27:13|1663022413889915338|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": []
}, {
"usr": 9201299975592934124,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [15477793821005285152, 4917621020431490070],
"uses": [],
"callees": []
}, {
"usr": 17498190318698490707,
"detailed_name": "void foo(T Value)",
@ -68,13 +96,13 @@ OUTPUT:
"short_name": "foo",
"kind": 12,
"storage": 0,
"declarations": ["43:6-43:9|0|1|1"],
"declarations": [],
"spell": "39:6-39:9|0|1|2",
"extent": "39:1-39:21|0|1|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [17826688417349629938],
"vars": [],
"uses": [],
"callees": []
}, {
@ -84,8 +112,8 @@ OUTPUT:
"short_name": "clear",
"kind": 6,
"storage": 0,
"declarations": ["13:8-13:13|7440942986741176606|2|1"],
"declaring_type": 7440942986741176606,
"declarations": ["13:8-13:13|7440942986741176606|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -93,7 +121,7 @@ OUTPUT:
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -107,27 +135,10 @@ OUTPUT:
"vars": [],
"instances": [13914496963221806870],
"uses": []
}, {
"usr": 218068462278884837,
"detailed_name": "function",
"qual_name_offset": 0,
"short_name": "function",
"kind": 5,
"declarations": [],
"spell": "5:7-5:15|0|1|2",
"extent": "4:1-5:30|0|1|0",
"alias_of": 0,
"bases": [15019211479263750068],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [2933643612409209903],
"uses": ["7:1-7:9|0|1|4"]
}, {
"usr": 1663022413889915338,
"detailed_name": "vector",
"qual_name_offset": 0,
"detailed_name": "template<> class vector<Z2, allocator<Z2>> {}",
"qual_name_offset": 17,
"short_name": "vector",
"kind": 5,
"declarations": [],
@ -139,12 +150,12 @@ OUTPUT:
"types": [],
"funcs": [6113470698424012876],
"vars": [],
"instances": [],
"instances": [15931696253641284761],
"uses": []
}, {
"usr": 5760043510674081814,
"detailed_name": "Z1",
"qual_name_offset": 0,
"detailed_name": "struct Z1 {}",
"qual_name_offset": 7,
"short_name": "Z1",
"kind": 23,
"declarations": [],
@ -158,61 +169,27 @@ OUTPUT:
"vars": [],
"instances": [],
"uses": ["32:8-32:10|0|1|4"]
}, {
"usr": 7143192229126273961,
"detailed_name": "Args",
"qual_name_offset": 0,
"short_name": "Args",
"kind": 26,
"declarations": [],
"spell": "4:34-4:38|0|1|2",
"extent": "4:22-4:38|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["5:18-5:22|0|1|4"]
}, {
"usr": 7440942986741176606,
"detailed_name": "vector",
"qual_name_offset": 0,
"detailed_name": "class vector {}",
"qual_name_offset": 6,
"short_name": "vector",
"kind": 5,
"declarations": ["17:7-17:13|0|1|4", "26:7-26:13|0|1|4"],
"declarations": [],
"spell": "12:7-12:13|0|1|2",
"extent": "12:1-14:2|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [16155717907537731864, 1663022413889915338],
"derived": [1663022413889915338],
"types": [],
"funcs": [18107614608385228556],
"vars": [],
"instances": [5792869548777559988, 3566687051827176322, 15931696253641284761],
"uses": ["30:1-30:7|0|1|4", "31:1-31:7|0|1|4", "32:1-32:7|0|1|4", "33:1-33:7|0|1|4"]
}, {
"usr": 8880262253425334092,
"detailed_name": "T",
"qual_name_offset": 0,
"short_name": "T",
"kind": 26,
"declarations": [],
"spell": "16:19-16:20|0|1|2",
"extent": "16:10-16:20|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["17:14-17:15|0|1|4"]
"instances": [5792869548777559988, 86949563628772958, 3566687051827176322],
"uses": ["17:7-17:13|0|1|4", "26:7-26:13|0|1|4", "30:1-30:7|0|1|4", "31:1-31:7|0|1|4", "32:1-32:7|0|1|4", "33:1-33:7|0|1|4"]
}, {
"usr": 9201299975592934124,
"detailed_name": "Enum",
"qual_name_offset": 0,
"detailed_name": "enum Enum {\n}",
"qual_name_offset": 5,
"short_name": "Enum",
"kind": 10,
"declarations": [],
@ -226,30 +203,13 @@ OUTPUT:
"vars": [],
"instances": [],
"uses": []
}, {
"usr": 9673599782548740467,
"detailed_name": "T",
"qual_name_offset": 0,
"short_name": "T",
"kind": 26,
"declarations": [],
"spell": "4:19-4:20|0|1|2",
"extent": "4:10-4:20|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["5:16-5:17|0|1|4"]
}, {
"usr": 10124869160135436852,
"detailed_name": "Z2",
"qual_name_offset": 0,
"detailed_name": "struct Z2 {}",
"qual_name_offset": 7,
"short_name": "Z2",
"kind": 23,
"declarations": ["26:14-26:16|0|1|4"],
"declarations": [],
"spell": "23:8-23:10|0|1|2",
"extent": "23:1-23:13|0|1|0",
"alias_of": 0,
@ -259,48 +219,29 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["33:8-33:10|0|1|4"]
}, {
"usr": 14111105212951082474,
"detailed_name": "T",
"qual_name_offset": 0,
"short_name": "T",
"kind": 26,
"declarations": [],
"spell": "38:20-38:21|17498190318698490707|3|2",
"extent": "38:11-38:21|17498190318698490707|3|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["39:10-39:11|0|1|4"]
"uses": ["26:14-26:16|0|1|4", "33:8-33:10|0|1|4"]
}, {
"usr": 15019211479263750068,
"detailed_name": "function",
"qual_name_offset": 0,
"detailed_name": "class function",
"qual_name_offset": 6,
"short_name": "function",
"kind": 5,
"declarations": ["2:7-2:15|0|1|1", "5:7-5:15|0|1|4"],
"spell": "2:7-2:15|0|1|2",
"extent": "1:1-2:15|0|1|0",
"declarations": ["2:7-2:15|0|1|1"],
"alias_of": 0,
"bases": [],
"derived": [218068462278884837],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["7:1-7:9|0|1|4"]
"instances": [2933643612409209903],
"uses": ["5:7-5:15|0|1|4", "7:1-7:9|0|1|4"]
}, {
"usr": 15695704394170757108,
"detailed_name": "allocator",
"qual_name_offset": 0,
"detailed_name": "class allocator",
"qual_name_offset": 6,
"short_name": "allocator",
"kind": 5,
"declarations": ["9:28-9:37|0|1|1", "11:39-11:48|0|1|4"],
"declarations": ["9:28-9:37|0|1|1"],
"alias_of": 0,
"bases": [],
"derived": [],
@ -308,24 +249,7 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}, {
"usr": 16155717907537731864,
"detailed_name": "vector",
"qual_name_offset": 0,
"short_name": "vector",
"kind": 5,
"declarations": [],
"spell": "17:7-17:13|0|1|2",
"extent": "16:1-17:20|0|1|0",
"alias_of": 0,
"bases": [7440942986741176606],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [86949563628772958],
"uses": ["31:1-31:7|0|1|4"]
"uses": ["11:39-11:48|0|1|4"]
}],
"usr2var": [{
"usr": 86949563628772958,
@ -335,19 +259,19 @@ OUTPUT:
"declarations": [],
"spell": "31:14-31:17|0|1|2",
"extent": "31:1-31:17|0|1|0",
"type": 16155717907537731864,
"type": 7440942986741176606,
"uses": [],
"kind": 13,
"storage": 0
}, {
"usr": 2933643612409209903,
"detailed_name": "function<void (int)> f",
"qual_name_offset": 21,
"qual_name_offset": 0,
"short_name": "f",
"declarations": [],
"spell": "7:21-7:22|0|1|2",
"extent": "7:1-7:22|0|1|0",
"type": 218068462278884837,
"type": 15019211479263750068,
"uses": [],
"kind": 13,
"storage": 0
@ -365,14 +289,14 @@ OUTPUT:
"storage": 0
}, {
"usr": 4917621020431490070,
"detailed_name": "Enum::Enum1",
"detailed_name": "Enum1",
"qual_name_offset": 0,
"short_name": "Enum1",
"hover": "Enum::Enum1 = 1",
"hover": "Enum1 = 1",
"declarations": [],
"spell": "36:10-36:15|9201299975592934124|2|2",
"spell": "36:10-36:15|9201299975592934124|2|514",
"extent": "36:10-36:15|9201299975592934124|2|0",
"type": 9201299975592934124,
"type": 0,
"uses": [],
"kind": 22,
"storage": 0
@ -390,28 +314,28 @@ OUTPUT:
"storage": 0
}, {
"usr": 13914496963221806870,
"detailed_name": "const int kOnst",
"qual_name_offset": 10,
"detailed_name": "static const int kOnst",
"qual_name_offset": 17,
"short_name": "kOnst",
"hover": "const int kOnst = 7",
"hover": "static const int kOnst = 7",
"declarations": [],
"spell": "41:18-41:23|0|1|2",
"extent": "41:1-41:27|0|1|0",
"type": 17,
"uses": ["43:27-43:32|0|1|4"],
"type": 53,
"uses": ["43:27-43:32|0|1|12"],
"kind": 13,
"storage": 2
}, {
"usr": 15477793821005285152,
"detailed_name": "Enum::Enum0",
"detailed_name": "Enum0",
"qual_name_offset": 0,
"short_name": "Enum0",
"hover": "Enum::Enum0 = 0",
"hover": "Enum0 = 0",
"declarations": [],
"spell": "36:3-36:8|9201299975592934124|2|2",
"spell": "36:3-36:8|9201299975592934124|2|514",
"extent": "36:3-36:8|9201299975592934124|2|0",
"type": 9201299975592934124,
"uses": ["43:20-43:25|0|1|4"],
"type": 0,
"uses": ["43:20-43:25|9201299975592934124|2|4"],
"kind": 22,
"storage": 0
}, {
@ -422,7 +346,7 @@ OUTPUT:
"declarations": [],
"spell": "33:12-33:15|0|1|2",
"extent": "33:1-33:15|0|1|0",
"type": 7440942986741176606,
"type": 1663022413889915338,
"uses": [],
"kind": 13,
"storage": 0
@ -432,7 +356,7 @@ OUTPUT:
"qual_name_offset": 2,
"short_name": "Value",
"declarations": [],
"spell": "39:12-39:17|17498190318698490707|3|2",
"spell": "39:12-39:17|17498190318698490707|3|514",
"extent": "39:10-39:17|17498190318698490707|3|0",
"type": 0,
"uses": [],

View File

@ -21,18 +21,34 @@ EXTRA_FLAGS:
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 11994188353303124840,
"detailed_name": "template <class T> void Template::Foo()",
"qual_name_offset": 24,
"usr": 6995843774014807426,
"detailed_name": "void Template<void>::Foo()",
"qual_name_offset": 5,
"short_name": "Foo",
"kind": 6,
"storage": 0,
"declarations": ["3:8-3:11|17107291254533526269|2|1", "10:22-10:25|0|1|1"],
"spell": "7:19-7:22|17107291254533526269|2|2",
"extent": "6:1-7:24|0|1|0",
"declaring_type": 17107291254533526269,
"declarations": [],
"spell": "10:22-10:25|17649312483543982122|2|514",
"extent": "3:3-3:13|17649312483543982122|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": []
}, {
"usr": 11994188353303124840,
"detailed_name": "void Template::Foo()",
"qual_name_offset": 5,
"short_name": "Foo",
"kind": 6,
"storage": 0,
"declarations": ["3:8-3:11|17107291254533526269|2|513"],
"spell": "7:19-7:22|17107291254533526269|2|514",
"extent": "3:3-3:13|17107291254533526269|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -41,8 +57,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 17107291254533526269,
"detailed_name": "Template",
"qual_name_offset": 0,
"detailed_name": "class Template {}",
"qual_name_offset": 6,
"short_name": "Template",
"kind": 5,
"declarations": [],
@ -56,6 +72,21 @@ OUTPUT:
"vars": [],
"instances": [],
"uses": ["7:6-7:14|0|1|4", "10:6-10:14|0|1|4"]
}, {
"usr": 17649312483543982122,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [6995843774014807426],
"vars": [],
"instances": [],
"uses": []
}],
"usr2var": []
}

View File

@ -12,26 +12,26 @@ int b = Foo<bool>::foo();
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 8340731781048851399,
"detailed_name": "static int Foo::foo()",
"qual_name_offset": 11,
"short_name": "foo",
"kind": 254,
"storage": 2,
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "3:14-3:17|10528472276654770367|2|2",
"spell": "3:14-3:17|10528472276654770367|2|514",
"extent": "3:3-5:4|10528472276654770367|2|0",
"declaring_type": 10528472276654770367,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["8:19-8:22|0|1|32", "9:20-9:23|0|1|32"],
"uses": ["8:19-8:22|10528472276654770367|2|36", "9:20-9:23|10528472276654770367|2|36"],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -47,10 +47,10 @@ OUTPUT:
"uses": []
}, {
"usr": 10528472276654770367,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 5,
"kind": 23,
"declarations": [],
"spell": "2:8-2:11|0|1|2",
"extent": "2:1-6:2|0|1|0",
@ -72,7 +72,7 @@ OUTPUT:
"declarations": [],
"spell": "9:5-9:6|0|1|2",
"extent": "9:1-9:25|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0
@ -85,7 +85,7 @@ OUTPUT:
"declarations": [],
"spell": "8:5-8:6|0|1|2",
"extent": "8:1-8:24|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0

View File

@ -13,26 +13,26 @@ int b = Foo<bool>::foo<double>();
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 9034026360701857235,
"detailed_name": "static int Foo::foo()",
"qual_name_offset": 11,
"short_name": "foo",
"kind": 254,
"storage": 2,
"kind": 6,
"storage": 0,
"declarations": [],
"spell": "4:14-4:17|10528472276654770367|2|2",
"spell": "4:14-4:17|10528472276654770367|2|514",
"extent": "4:3-6:4|10528472276654770367|2|0",
"declaring_type": 10528472276654770367,
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["9:19-9:22|0|1|32", "10:20-10:23|0|1|32"],
"uses": ["9:19-9:22|10528472276654770367|2|36", "10:20-10:23|10528472276654770367|2|36"],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -48,10 +48,10 @@ OUTPUT:
"uses": []
}, {
"usr": 10528472276654770367,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 5,
"kind": 23,
"declarations": [],
"spell": "2:8-2:11|0|1|2",
"extent": "2:1-7:2|0|1|0",
@ -73,7 +73,7 @@ OUTPUT:
"declarations": [],
"spell": "10:5-10:6|0|1|2",
"extent": "10:1-10:33|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0
@ -86,7 +86,7 @@ OUTPUT:
"declarations": [],
"spell": "9:5-9:6|0|1|2",
"extent": "9:1-9:31|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0

View File

@ -31,12 +31,12 @@ VarDecl b
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": ["12:1-28:7"],
"skipped_ranges": ["12:1-29:1"],
"usr2func": [],
"usr2type": [{
"usr": 6697181287623958829,
"detailed_name": "A",
"qual_name_offset": 0,
"detailed_name": "enum A {\n}",
"qual_name_offset": 5,
"short_name": "A",
"kind": 10,
"declarations": [],
@ -52,25 +52,25 @@ OUTPUT:
"uses": ["9:5-9:6|0|1|4"]
}, {
"usr": 10528472276654770367,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 5,
"kind": 23,
"declarations": [],
"spell": "5:8-5:11|0|1|2",
"extent": "5:1-7:2|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"types": [13938528237873543349],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["9:1-9:4|0|1|4", "10:1-10:4|0|1|4"]
}, {
"usr": 13892793056005362145,
"detailed_name": "B",
"qual_name_offset": 0,
"detailed_name": "enum B {\n}",
"qual_name_offset": 5,
"short_name": "B",
"kind": 10,
"declarations": [],
@ -86,12 +86,12 @@ OUTPUT:
"uses": ["10:5-10:6|0|1|4"]
}, {
"usr": 13938528237873543349,
"detailed_name": "Foo::Inner",
"qual_name_offset": 0,
"detailed_name": "struct Foo::Inner {}",
"qual_name_offset": 7,
"short_name": "Inner",
"kind": 23,
"declarations": [],
"spell": "6:10-6:15|10528472276654770367|2|2",
"spell": "6:10-6:15|10528472276654770367|2|514",
"extent": "6:3-6:18|10528472276654770367|2|0",
"alias_of": 0,
"bases": [],
@ -100,7 +100,7 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [16721564935990383768, 12028309045033782423],
"uses": ["9:9-9:14|0|1|4", "10:9-10:14|0|1|4"]
"uses": ["9:9-9:14|10528472276654770367|2|4", "10:9-10:14|10528472276654770367|2|4"]
}],
"usr2var": [{
"usr": 12028309045033782423,

View File

@ -10,10 +10,24 @@ int b = Foo<bool>::var;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 10528472276654770367,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [13545144895171991916],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -29,10 +43,10 @@ OUTPUT:
"uses": []
}, {
"usr": 10528472276654770367,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 5,
"kind": 23,
"declarations": [],
"spell": "2:8-2:11|0|1|2",
"extent": "2:1-4:2|0|1|0",
@ -54,20 +68,20 @@ OUTPUT:
"declarations": [],
"spell": "7:5-7:6|0|1|2",
"extent": "7:1-7:23|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0
}, {
"usr": 13545144895171991916,
"detailed_name": "const int Foo::var",
"qual_name_offset": 10,
"detailed_name": "static constexpr int Foo::var",
"qual_name_offset": 21,
"short_name": "var",
"hover": "const int Foo::var = 3",
"declarations": ["3:24-3:27|10528472276654770367|2|1"],
"type": 17,
"uses": ["6:19-6:22|0|1|4", "7:20-7:23|0|1|4"],
"kind": 8,
"hover": "static constexpr int Foo::var = 3",
"declarations": ["3:24-3:27|10528472276654770367|2|513"],
"type": 53,
"uses": ["6:19-6:22|10528472276654770367|2|12", "7:20-7:23|10528472276654770367|2|12"],
"kind": 13,
"storage": 2
}, {
"usr": 16721564935990383768,
@ -78,7 +92,7 @@ OUTPUT:
"declarations": [],
"spell": "6:5-6:6|0|1|2",
"extent": "6:1-6:22|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0

View File

@ -13,14 +13,14 @@ int b = foo<bool>();
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 326583651986177228,
"detailed_name": "static int foo()",
"qual_name_offset": 11,
"short_name": "foo",
"kind": 12,
"storage": 2,
"storage": 0,
"declarations": [],
"spell": "2:12-2:15|0|1|2",
"extent": "2:1-4:2|0|1|0",
@ -28,11 +28,11 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["6:9-6:12|0|1|32", "7:9-7:12|0|1|32"],
"uses": ["6:9-6:12|0|1|36", "7:9-7:12|0|1|36"],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -56,7 +56,7 @@ OUTPUT:
"declarations": [],
"spell": "7:5-7:6|0|1|2",
"extent": "7:1-7:20|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0
@ -69,7 +69,7 @@ OUTPUT:
"declarations": [],
"spell": "6:5-6:6|0|1|2",
"extent": "6:1-6:19|0|1|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 13,
"storage": 0

View File

@ -8,12 +8,12 @@ Foo<bool> b;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 10528472276654770367,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
@ -31,7 +31,7 @@ OUTPUT:
"usr2var": [{
"usr": 12028309045033782423,
"detailed_name": "Foo<bool> b",
"qual_name_offset": 10,
"qual_name_offset": 4,
"short_name": "b",
"declarations": [],
"spell": "5:11-5:12|0|1|2",

View File

@ -34,12 +34,12 @@ EXTRA_FLAGS:
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": ["12:1-28:7"],
"skipped_ranges": ["12:1-29:1"],
"usr2func": [],
"usr2type": [{
"usr": 6697181287623958829,
"detailed_name": "A",
"qual_name_offset": 0,
"detailed_name": "enum A {\n}",
"qual_name_offset": 5,
"short_name": "A",
"kind": 10,
"declarations": [],
@ -53,25 +53,10 @@ OUTPUT:
"vars": [],
"instances": [16721564935990383768],
"uses": ["7:1-7:2|0|1|4", "7:11-7:12|0|1|4"]
}, {
"usr": 11919899838872947844,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["5:1-5:2|0|1|4", "5:9-5:10|0|1|4"]
}, {
"usr": 13892793056005362145,
"detailed_name": "B",
"qual_name_offset": 0,
"detailed_name": "enum B {\n}",
"qual_name_offset": 5,
"short_name": "B",
"kind": 10,
"declarations": [],
@ -96,7 +81,7 @@ OUTPUT:
"spell": "5:3-5:6|0|1|2",
"extent": "5:1-5:12|0|1|0",
"type": 0,
"uses": ["7:7-7:10|0|1|4", "8:7-8:10|0|1|4"],
"uses": ["7:7-7:10|0|1|12", "8:7-8:10|0|1|12"],
"kind": 13,
"storage": 0
}, {

View File

@ -7,10 +7,38 @@ union vector3 {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 1428566502523368801,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [3348817847649945564, 4821094820988543895, 15292551660437765731],
"uses": [],
"callees": []
}, {
"usr": 17937907487590875128,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [1963212417280098348],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 21,
"usr": 82,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -22,16 +50,16 @@ OUTPUT:
"types": [],
"funcs": [],
"vars": [],
"instances": [3348817847649945564, 4821094820988543895, 15292551660437765731, 1963212417280098348],
"instances": [3348817847649945564, 4821094820988543895, 15292551660437765731],
"uses": []
}, {
"usr": 1428566502523368801,
"detailed_name": "vector3::(anon struct)",
"detailed_name": "struct {}",
"qual_name_offset": 0,
"short_name": "(anon struct)",
"short_name": "",
"kind": 23,
"declarations": [],
"spell": "2:3-2:9|17937907487590875128|2|2",
"spell": "2:3-2:9|17937907487590875128|2|514",
"extent": "2:3-2:28|17937907487590875128|2|0",
"alias_of": 0,
"bases": [],
@ -52,27 +80,21 @@ OUTPUT:
"uses": []
}, {
"usr": 17937907487590875128,
"detailed_name": "vector3",
"qual_name_offset": 0,
"detailed_name": "union vector3 {}",
"qual_name_offset": 6,
"short_name": "vector3",
"kind": 23,
"kind": 5,
"declarations": [],
"spell": "1:7-1:14|0|1|2",
"extent": "1:1-4:2|0|1|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"types": [1428566502523368801],
"funcs": [],
"vars": [{
"L": 3348817847649945564,
"R": -1
}, {
"L": 4821094820988543895,
"R": -1
}, {
"L": 15292551660437765731,
"R": -1
"L": 12549098950381705776,
"R": 0
}, {
"L": 1963212417280098348,
"R": 0
@ -82,14 +104,13 @@ OUTPUT:
}],
"usr2var": [{
"usr": 1963212417280098348,
"detailed_name": "float [3] vector3::v",
"qual_name_offset": 10,
"detailed_name": "float vector3::v[3]",
"qual_name_offset": 6,
"short_name": "v",
"hover": "float [3] vector3::v[3]",
"declarations": [],
"spell": "3:9-3:10|17937907487590875128|2|2",
"spell": "3:9-3:10|17937907487590875128|2|514",
"extent": "3:3-3:13|17937907487590875128|2|0",
"type": 21,
"type": 0,
"uses": [],
"kind": 8,
"storage": 0
@ -99,9 +120,9 @@ OUTPUT:
"qual_name_offset": 6,
"short_name": "x",
"declarations": [],
"spell": "2:18-2:19|1428566502523368801|2|2",
"spell": "2:18-2:19|1428566502523368801|2|514",
"extent": "2:12-2:19|1428566502523368801|2|0",
"type": 21,
"type": 82,
"uses": [],
"kind": 8,
"storage": 0
@ -111,9 +132,9 @@ OUTPUT:
"qual_name_offset": 6,
"short_name": "y",
"declarations": [],
"spell": "2:21-2:22|1428566502523368801|2|2",
"spell": "2:21-2:22|1428566502523368801|2|514",
"extent": "2:12-2:22|1428566502523368801|2|0",
"type": 21,
"type": 82,
"uses": [],
"kind": 8,
"storage": 0
@ -123,9 +144,9 @@ OUTPUT:
"qual_name_offset": 6,
"short_name": "z",
"declarations": [],
"spell": "2:24-2:25|1428566502523368801|2|2",
"spell": "2:24-2:25|1428566502523368801|2|514",
"extent": "2:12-2:25|1428566502523368801|2|0",
"type": 21,
"type": 82,
"uses": [],
"kind": 8,
"storage": 0

View File

@ -5,14 +5,14 @@ static func g;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 8105378401105136463,
"detailed_name": "static int g(const int *, const int *)",
"qual_name_offset": 11,
"short_name": "g",
"kind": 12,
"storage": 2,
"storage": 0,
"declarations": ["2:13-2:14|0|1|1"],
"declaring_type": 0,
"bases": [],
@ -23,29 +23,13 @@ OUTPUT:
}],
"usr2type": [{
"usr": 10383876566159302459,
"detailed_name": "func",
"qual_name_offset": 0,
"detailed_name": "typedef int (func)(const int *, const int *)",
"qual_name_offset": 12,
"short_name": "func",
"kind": 252,
"hover": "typedef int (func)(const int *a, const int *b)",
"declarations": [],
"spell": "1:14-1:18|0|1|2",
"extent": "1:1-1:47|0|1|0",
"alias_of": 13838176792705659279,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["1:14-1:18|0|1|4", "2:8-2:12|0|1|4"]
}, {
"usr": 13838176792705659279,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [],
@ -53,7 +37,7 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": []
"uses": ["2:8-2:12|0|1|4"]
}],
"usr2var": []
}

View File

@ -7,10 +7,24 @@ union Foo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 8501689086387244262,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [9529311430721959843, 8804696910588009104],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 3,
"usr": 37,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -25,7 +39,7 @@ OUTPUT:
"instances": [8804696910588009104],
"uses": []
}, {
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -41,10 +55,10 @@ OUTPUT:
"uses": []
}, {
"usr": 8501689086387244262,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "union Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 23,
"kind": 5,
"declarations": [],
"spell": "1:7-1:10|0|1|2",
"extent": "1:1-4:2|0|1|0",
@ -65,13 +79,13 @@ OUTPUT:
}],
"usr2var": [{
"usr": 8804696910588009104,
"detailed_name": "bool Foo::b",
"qual_name_offset": 5,
"detailed_name": "Foo::bool b",
"qual_name_offset": 0,
"short_name": "b",
"declarations": [],
"spell": "3:8-3:9|8501689086387244262|2|2",
"spell": "3:8-3:9|8501689086387244262|2|514",
"extent": "3:3-3:9|8501689086387244262|2|0",
"type": 3,
"type": 37,
"uses": [],
"kind": 8,
"storage": 0
@ -81,9 +95,9 @@ OUTPUT:
"qual_name_offset": 4,
"short_name": "a",
"declarations": [],
"spell": "2:7-2:8|8501689086387244262|2|2",
"spell": "2:7-2:8|8501689086387244262|2|514",
"extent": "2:3-2:8|8501689086387244262|2|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 8,
"storage": 0

View File

@ -15,8 +15,22 @@ void act(Foo*) {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 8501689086387244262,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [9529311430721959843, 8804696910588009104],
"uses": [],
"callees": []
}, {
"usr": 13982179977217945200,
"detailed_name": "void act(Foo *)",
"qual_name_offset": 5,
@ -34,7 +48,7 @@ OUTPUT:
"callees": []
}],
"usr2type": [{
"usr": 3,
"usr": 37,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -49,7 +63,7 @@ OUTPUT:
"instances": [8804696910588009104],
"uses": []
}, {
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -65,10 +79,10 @@ OUTPUT:
"uses": []
}, {
"usr": 8501689086387244262,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "union Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 23,
"kind": 5,
"declarations": [],
"spell": "1:7-1:10|0|1|2",
"extent": "1:1-4:2|0|1|0",
@ -96,33 +110,31 @@ OUTPUT:
"spell": "6:5-6:6|0|1|2",
"extent": "6:1-6:6|0|1|0",
"type": 8501689086387244262,
"uses": ["9:3-9:4|13982179977217945200|3|4"],
"uses": ["9:3-9:4|0|1|4"],
"kind": 13,
"storage": 0
}, {
"usr": 8804696910588009104,
"detailed_name": "bool Foo::b",
"qual_name_offset": 5,
"detailed_name": "Foo::bool b : 3",
"qual_name_offset": 0,
"short_name": "b",
"hover": "bool Foo::b : 3",
"declarations": [],
"spell": "3:8-3:9|8501689086387244262|2|2",
"spell": "3:8-3:9|8501689086387244262|2|514",
"extent": "3:3-3:13|8501689086387244262|2|0",
"type": 3,
"type": 37,
"uses": [],
"kind": 8,
"storage": 0
}, {
"usr": 9529311430721959843,
"detailed_name": "int Foo::a",
"detailed_name": "int Foo::a : 5",
"qual_name_offset": 4,
"short_name": "a",
"hover": "int Foo::a : 5",
"declarations": [],
"spell": "2:7-2:8|8501689086387244262|2|2",
"spell": "2:7-2:8|8501689086387244262|2|514",
"extent": "2:3-2:12|8501689086387244262|2|0",
"type": 17,
"uses": ["9:5-9:6|13982179977217945200|3|4"],
"type": 53,
"uses": ["9:5-9:6|8501689086387244262|2|20"],
"kind": 8,
"storage": 0
}]

View File

@ -12,7 +12,7 @@ Foo::Foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 468307235068920063,
"detailed_name": "void called()",
@ -27,7 +27,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["8:3-8:9|3385168158331140247|3|32"],
"uses": ["8:3-8:9|0|1|8228"],
"callees": []
}, {
"usr": 3385168158331140247,
@ -36,23 +36,23 @@ OUTPUT:
"short_name": "Foo",
"kind": 9,
"storage": 0,
"declarations": ["4:3-4:6|15041163540773201510|2|1"],
"spell": "7:6-7:9|15041163540773201510|2|2",
"extent": "7:1-9:2|0|1|0",
"declaring_type": 15041163540773201510,
"declarations": ["4:3-4:6|15041163540773201510|2|513"],
"spell": "7:6-7:9|15041163540773201510|2|514",
"extent": "4:3-4:8|15041163540773201510|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": ["8:3-8:9|468307235068920063|3|32"]
"callees": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": ["4:3-4:6|0|1|4", "7:6-7:9|0|1|4"],
"declarations": [],
"spell": "3:8-3:11|0|1|2",
"extent": "3:1-5:2|0|1|0",
"alias_of": 0,
@ -62,7 +62,7 @@ OUTPUT:
"funcs": [3385168158331140247],
"vars": [],
"instances": [],
"uses": ["4:3-4:6|15041163540773201510|2|4", "7:6-7:9|0|1|4", "7:1-7:4|0|1|4"]
"uses": ["4:3-4:6|0|1|4", "7:1-7:4|0|1|4", "7:6-7:9|0|1|4"]
}],
"usr2var": []
}

View File

@ -10,7 +10,7 @@ void caller() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 3787803219955606747,
"detailed_name": "bool called(bool a, bool b)",
@ -23,7 +23,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["6:14-6:20|11404881820527069090|3|32"],
"uses": ["6:14-6:20|0|1|8228"],
"callees": []
}, {
"usr": 11404881820527069090,
@ -40,20 +40,20 @@ OUTPUT:
"derived": [],
"vars": [],
"uses": [],
"callees": ["6:14-6:20|3787803219955606747|3|32"]
"callees": []
}],
"usr2type": [],
"usr2var": [{
"usr": 1290746656694198202,
"usr": 16326993795872073150,
"detailed_name": "MACRO_CALL",
"qual_name_offset": 0,
"short_name": "MACRO_CALL",
"hover": "#define MACRO_CALL(e) e",
"hover": "#define MACRO_CALL",
"declarations": [],
"spell": "1:9-1:19|0|1|2",
"extent": "1:9-1:24|0|1|0",
"extent": "1:9-1:19|0|1|2",
"type": 0,
"uses": ["6:3-6:13|0|1|4"],
"uses": ["6:3-6:33|0|1|4"],
"kind": 255,
"storage": 0
}]

View File

@ -15,7 +15,7 @@ void foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 468307235068920063,
"detailed_name": "void called()",
@ -28,7 +28,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["5:3-5:9|10177235824697315808|3|32"],
"uses": ["5:3-5:9|0|1|8228"],
"callees": []
}, {
"usr": 4259594751088586730,
@ -45,7 +45,7 @@ OUTPUT:
"derived": [],
"vars": [],
"uses": [],
"callees": ["9:3-9:9|10177235824697315808|3|32"]
"callees": []
}, {
"usr": 10177235824697315808,
"detailed_name": "void caller()",
@ -60,8 +60,8 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["9:3-9:9|4259594751088586730|3|32"],
"callees": ["5:3-5:9|468307235068920063|3|32"]
"uses": ["9:3-9:9|0|1|8228"],
"callees": []
}],
"usr2type": [],
"usr2var": []

View File

@ -12,7 +12,7 @@ Wrapper caller() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 468307235068920063,
"detailed_name": "int called()",
@ -27,7 +27,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["8:10-8:16|11404881820527069090|3|32"],
"uses": ["8:10-8:16|0|1|8228"],
"callees": []
}, {
"usr": 10544127002917214589,
@ -36,12 +36,12 @@ OUTPUT:
"short_name": "Wrapper",
"kind": 9,
"storage": 0,
"declarations": ["2:3-2:10|13611487872560323389|2|1"],
"declaring_type": 13611487872560323389,
"declarations": ["2:3-2:10|13611487872560323389|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["8:10-8:18|11404881820527069090|3|288"],
"uses": ["8:10-8:16|13611487872560323389|2|8228"],
"callees": []
}, {
"usr": 11404881820527069090,
@ -58,15 +58,15 @@ OUTPUT:
"derived": [],
"vars": [],
"uses": [],
"callees": ["8:10-8:18|10544127002917214589|3|288", "8:10-8:16|468307235068920063|3|32"]
"callees": []
}],
"usr2type": [{
"usr": 13611487872560323389,
"detailed_name": "Wrapper",
"qual_name_offset": 0,
"detailed_name": "struct Wrapper {}",
"qual_name_offset": 7,
"short_name": "Wrapper",
"kind": 23,
"declarations": ["2:3-2:10|0|1|4"],
"declarations": [],
"spell": "1:8-1:15|0|1|2",
"extent": "1:1-3:2|0|1|0",
"alias_of": 0,
@ -76,7 +76,7 @@ OUTPUT:
"funcs": [10544127002917214589],
"vars": [],
"instances": [],
"uses": ["2:3-2:10|13611487872560323389|2|4", "7:1-7:8|0|1|4"]
"uses": ["2:3-2:10|0|1|4", "7:1-7:8|0|1|4"]
}],
"usr2var": []
}

View File

@ -11,7 +11,7 @@ void user() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 5264867802674151787,
"detailed_name": "void used()",
@ -26,7 +26,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["6:18-6:22|9376923949268137283|3|32", "7:12-7:16|9376923949268137283|3|32"],
"uses": ["6:18-6:22|0|1|132", "7:12-7:16|0|1|132"],
"callees": []
}, {
"usr": 9376923949268137283,
@ -41,9 +41,9 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [16088407831770615719],
"vars": [],
"uses": [],
"callees": ["6:18-6:22|5264867802674151787|3|32", "6:18-6:22|5264867802674151787|3|32", "7:3-7:10|12924914488846929470|3|32", "7:12-7:16|5264867802674151787|3|32"]
"callees": []
}, {
"usr": 12924914488846929470,
"detailed_name": "void consume(void (*)())",
@ -58,15 +58,16 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["7:3-7:10|9376923949268137283|3|32"],
"uses": ["7:3-7:10|0|1|8228"],
"callees": []
}],
"usr2type": [],
"usr2var": [{
"usr": 16088407831770615719,
"detailed_name": "void (*)() x",
"qual_name_offset": 11,
"detailed_name": "void (*x)()",
"qual_name_offset": 7,
"short_name": "x",
"hover": "void (*x)() = &used",
"declarations": [],
"spell": "6:10-6:11|9376923949268137283|3|2",
"extent": "6:3-6:22|9376923949268137283|3|0",

View File

@ -11,7 +11,7 @@ void user() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 9376923949268137283,
"detailed_name": "void user()",
@ -25,9 +25,9 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [4636142131003982569],
"vars": [],
"uses": [],
"callees": ["6:18-6:22|18417145003926999463|3|32", "6:18-6:22|18417145003926999463|3|32"]
"callees": []
}, {
"usr": 18417145003926999463,
"detailed_name": "void Foo::Used()",
@ -35,18 +35,18 @@ OUTPUT:
"short_name": "Used",
"kind": 6,
"storage": 0,
"declarations": ["2:8-2:12|15041163540773201510|2|1"],
"declaring_type": 15041163540773201510,
"declarations": ["2:8-2:12|15041163540773201510|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["6:18-6:22|9376923949268137283|3|32"],
"uses": ["6:18-6:22|15041163540773201510|2|132"],
"callees": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
@ -63,10 +63,10 @@ OUTPUT:
}],
"usr2var": [{
"usr": 4636142131003982569,
"detailed_name": "void (Foo::*)() x",
"qual_name_offset": 16,
"detailed_name": "auto x",
"qual_name_offset": 5,
"short_name": "x",
"hover": "void (Foo::*)() x = &Foo::Used",
"hover": "auto x = &Foo::Used",
"declarations": [],
"spell": "6:8-6:9|9376923949268137283|3|2",
"extent": "6:3-6:22|9376923949268137283|3|0",

View File

@ -7,7 +7,7 @@ void caller() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 468307235068920063,
"detailed_name": "void called()",
@ -22,7 +22,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["3:3-3:9|11404881820527069090|3|32"],
"uses": ["3:3-3:9|0|1|8228"],
"callees": []
}, {
"usr": 11404881820527069090,
@ -39,7 +39,7 @@ OUTPUT:
"derived": [],
"vars": [],
"uses": [],
"callees": ["3:3-3:9|468307235068920063|3|32"]
"callees": []
}],
"usr2type": [],
"usr2var": []

View File

@ -11,7 +11,7 @@ void user() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 9376923949268137283,
"detailed_name": "void user()",
@ -25,9 +25,9 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [14045150712868309451],
"vars": [],
"uses": [],
"callees": ["7:6-7:10|18417145003926999463|3|32"]
"callees": []
}, {
"usr": 18417145003926999463,
"detailed_name": "void Foo::Used()",
@ -35,18 +35,18 @@ OUTPUT:
"short_name": "Used",
"kind": 6,
"storage": 0,
"declarations": ["2:8-2:12|15041163540773201510|2|1"],
"declaring_type": 15041163540773201510,
"declarations": ["2:8-2:12|15041163540773201510|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["7:6-7:10|9376923949268137283|3|32"],
"uses": ["7:6-7:10|15041163540773201510|2|8228"],
"callees": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
@ -71,7 +71,7 @@ OUTPUT:
"spell": "6:8-6:9|9376923949268137283|3|2",
"extent": "6:3-6:19|9376923949268137283|3|0",
"type": 15041163540773201510,
"uses": ["7:3-7:4|9376923949268137283|3|4"],
"uses": ["7:3-7:4|9376923949268137283|3|12"],
"kind": 13,
"storage": 0
}]

View File

@ -10,14 +10,14 @@ class Foo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 9630503130605430498,
"detailed_name": "static int helper()",
"qual_name_offset": 11,
"short_name": "helper",
"kind": 12,
"storage": 2,
"storage": 0,
"declarations": [],
"spell": "1:12-1:18|0|1|2",
"extent": "1:1-3:2|0|1|0",
@ -25,11 +25,25 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["6:11-6:17|15041163540773201510|2|32"],
"uses": ["6:11-6:17|0|1|36"],
"callees": []
}, {
"usr": 15041163540773201510,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [4220150017963593039],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -45,8 +59,8 @@ OUTPUT:
"uses": []
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
@ -71,9 +85,9 @@ OUTPUT:
"short_name": "x",
"hover": "int Foo::x = helper()",
"declarations": [],
"spell": "6:7-6:8|15041163540773201510|2|2",
"spell": "6:7-6:8|15041163540773201510|2|514",
"extent": "6:3-6:19|15041163540773201510|2|0",
"type": 17,
"type": 53,
"uses": [],
"kind": 8,
"storage": 0

View File

@ -7,7 +7,7 @@ void usage() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",
@ -20,7 +20,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["4:3-4:6|6767773193109753523|3|32"],
"uses": ["4:3-4:6|0|1|8228"],
"callees": []
}, {
"usr": 6767773193109753523,
@ -37,7 +37,7 @@ OUTPUT:
"derived": [],
"vars": [],
"uses": [],
"callees": ["4:3-4:6|4259594751088586730|3|32"]
"callees": []
}],
"usr2type": [],
"usr2var": []

View File

@ -10,7 +10,7 @@ void usage() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 6767773193109753523,
"detailed_name": "void usage()",
@ -24,9 +24,9 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [16229832321010999607],
"vars": [],
"uses": [],
"callees": ["7:6-7:9|17922201480358737771|3|32"]
"callees": []
}, {
"usr": 17922201480358737771,
"detailed_name": "void Foo::foo()",
@ -34,18 +34,18 @@ OUTPUT:
"short_name": "foo",
"kind": 6,
"storage": 0,
"declarations": ["2:8-2:11|15041163540773201510|2|1"],
"declaring_type": 15041163540773201510,
"declarations": ["2:8-2:11|15041163540773201510|2|513"],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": ["7:6-7:9|6767773193109753523|3|32"],
"uses": ["7:6-7:9|15041163540773201510|2|8228"],
"callees": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
@ -70,7 +70,7 @@ OUTPUT:
"spell": "6:8-6:9|6767773193109753523|3|2",
"extent": "6:3-6:19|6767773193109753523|3|0",
"type": 15041163540773201510,
"uses": ["7:3-7:4|6767773193109753523|3|4"],
"uses": ["7:3-7:4|6767773193109753523|3|12"],
"kind": 13,
"storage": 0
}]

View File

@ -10,7 +10,7 @@ void foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",
@ -26,7 +26,7 @@ OUTPUT:
"derived": [],
"vars": [],
"uses": [],
"callees": ["5:3-5:9|10585861037135727329|3|32", "6:3-6:9|10585861037135727329|3|32"]
"callees": []
}, {
"usr": 10585861037135727329,
"detailed_name": "void accept(T)",
@ -39,27 +39,10 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["5:3-5:9|4259594751088586730|3|32", "6:3-6:9|4259594751088586730|3|32"],
"uses": ["5:3-5:9|0|1|8228", "6:3-6:9|0|1|8228"],
"callees": []
}],
"usr2type": [{
"usr": 13420564603121289209,
"detailed_name": "T",
"qual_name_offset": 0,
"short_name": "T",
"kind": 26,
"declarations": [],
"spell": "1:19-1:20|10585861037135727329|3|2",
"extent": "1:10-1:20|10585861037135727329|3|0",
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["2:13-2:14|0|1|4"]
}],
"usr2type": [],
"usr2var": []
}
*/

View File

@ -14,7 +14,7 @@ unique_ptr<S>* return_type() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 16359708726068806331,
"detailed_name": "unique_ptr<S> *return_type()",
@ -28,14 +28,14 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [3364438781074774169],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 3286534761799572592,
"detailed_name": "unique_ptr",
"qual_name_offset": 0,
"detailed_name": "class unique_ptr {}",
"qual_name_offset": 6,
"short_name": "unique_ptr",
"kind": 5,
"declarations": [],
@ -51,8 +51,8 @@ OUTPUT:
"uses": ["6:8-6:18|0|1|4", "7:8-7:18|0|1|4", "9:1-9:11|0|1|4", "10:3-10:13|0|1|4"]
}, {
"usr": 4750332761459066907,
"detailed_name": "S",
"qual_name_offset": 0,
"detailed_name": "struct S {}",
"qual_name_offset": 7,
"short_name": "S",
"kind": 23,
"declarations": [],
@ -81,8 +81,8 @@ OUTPUT:
"storage": 0
}, {
"usr": 12857919739649552168,
"detailed_name": "unique_ptr<bool> f0",
"qual_name_offset": 17,
"detailed_name": "static unique_ptr<bool> f0",
"qual_name_offset": 24,
"short_name": "f0",
"declarations": [],
"spell": "6:25-6:27|0|1|2",
@ -93,8 +93,8 @@ OUTPUT:
"storage": 2
}, {
"usr": 18075066956054788088,
"detailed_name": "unique_ptr<S> f1",
"qual_name_offset": 14,
"detailed_name": "static unique_ptr<S> f1",
"qual_name_offset": 21,
"short_name": "f1",
"declarations": [],
"spell": "7:22-7:24|0|1|2",

View File

@ -82,7 +82,7 @@ unique_ptr<S1, S2>* Foo::foo() { return nullptr; }
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": ["7:1-14:7", "17:1-32:7", "35:1-39:7", "42:1-52:7", "57:1-63:7", "68:1-78:7"],
"skipped_ranges": ["7:1-15:1", "17:1-33:1", "35:1-40:1", "42:1-53:1", "57:1-64:1", "68:1-79:1"],
"usr2func": [{
"usr": 1246637699196435450,
"detailed_name": "unique_ptr<unique_ptr<S1, S2>, S2> *as_return_type(unique_ptr<S1, S2> *)",
@ -122,10 +122,10 @@ OUTPUT:
"short_name": "foo",
"kind": 6,
"storage": 0,
"declarations": ["65:23-65:26|15041163540773201510|2|1"],
"spell": "79:26-79:29|15041163540773201510|2|2",
"extent": "79:1-79:51|0|1|0",
"declaring_type": 15041163540773201510,
"declarations": ["65:23-65:26|15041163540773201510|2|513"],
"spell": "79:26-79:29|15041163540773201510|2|514",
"extent": "65:3-65:28|15041163540773201510|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -144,14 +144,14 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [500112618220246],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 4310164820010458371,
"detailed_name": "S1",
"qual_name_offset": 0,
"detailed_name": "struct S1",
"qual_name_offset": 7,
"short_name": "S1",
"kind": 23,
"declarations": ["4:8-4:10|0|1|1"],
@ -165,8 +165,8 @@ OUTPUT:
"uses": ["15:30-15:32|0|1|4", "33:23-33:25|0|1|4", "33:63-33:65|0|1|4", "54:25-54:27|0|1|4", "65:14-65:16|0|1|4", "79:12-79:14|0|1|4"]
}, {
"usr": 12728490517004312484,
"detailed_name": "S2",
"qual_name_offset": 0,
"detailed_name": "struct S2",
"qual_name_offset": 7,
"short_name": "S2",
"kind": 23,
"declarations": ["5:8-5:10|0|1|1"],
@ -180,8 +180,8 @@ OUTPUT:
"uses": ["15:34-15:36|0|1|4", "15:39-15:41|0|1|4", "33:27-33:29|0|1|4", "33:32-33:34|0|1|4", "33:67-33:69|0|1|4", "54:29-54:31|0|1|4", "54:34-54:36|0|1|4", "65:18-65:20|0|1|4", "79:16-79:18|0|1|4"]
}, {
"usr": 14209198335088845323,
"detailed_name": "unique_ptr",
"qual_name_offset": 0,
"detailed_name": "class unique_ptr",
"qual_name_offset": 6,
"short_name": "unique_ptr",
"kind": 5,
"declarations": ["2:7-2:17|0|1|1"],
@ -195,8 +195,8 @@ OUTPUT:
"uses": ["15:8-15:18|0|1|4", "15:19-15:29|0|1|4", "33:1-33:11|0|1|4", "33:12-33:22|0|1|4", "33:52-33:62|0|1|4", "54:3-54:13|0|1|4", "54:14-54:24|0|1|4", "65:3-65:13|0|1|4", "79:1-79:11|0|1|4"]
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
@ -225,8 +225,8 @@ OUTPUT:
"storage": 0
}, {
"usr": 2933643612409209903,
"detailed_name": "unique_ptr<unique_ptr<S1, S2>, S2> f",
"qual_name_offset": 35,
"detailed_name": "extern unique_ptr<unique_ptr<S1, S2>, S2> f",
"qual_name_offset": 42,
"short_name": "f",
"declarations": ["15:43-15:44|0|1|1"],
"type": 14209198335088845323,

View File

@ -9,12 +9,12 @@ static unique_ptr<S> foo;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 3286534761799572592,
"detailed_name": "unique_ptr",
"qual_name_offset": 0,
"detailed_name": "class unique_ptr {}",
"qual_name_offset": 6,
"short_name": "unique_ptr",
"kind": 5,
"declarations": [],
@ -30,8 +30,8 @@ OUTPUT:
"uses": ["6:8-6:18|0|1|4"]
}, {
"usr": 4750332761459066907,
"detailed_name": "S",
"qual_name_offset": 0,
"detailed_name": "struct S",
"qual_name_offset": 7,
"short_name": "S",
"kind": 23,
"declarations": ["4:8-4:9|0|1|1"],
@ -46,8 +46,8 @@ OUTPUT:
}],
"usr2var": [{
"usr": 3398408600781120939,
"detailed_name": "unique_ptr<S> foo",
"qual_name_offset": 14,
"detailed_name": "static unique_ptr<S> foo",
"qual_name_offset": 21,
"short_name": "foo",
"declarations": [],
"spell": "6:22-6:25|0|1|2",

View File

@ -5,12 +5,12 @@ extern T t;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 5673439900521455039,
"detailed_name": "T",
"qual_name_offset": 0,
"detailed_name": "struct T {}",
"qual_name_offset": 7,
"short_name": "T",
"kind": 23,
"declarations": [],
@ -27,8 +27,8 @@ OUTPUT:
}],
"usr2var": [{
"usr": 1346710425945444872,
"detailed_name": "T t",
"qual_name_offset": 2,
"detailed_name": "extern T t",
"qual_name_offset": 0,
"short_name": "t",
"declarations": ["3:10-3:11|0|1|1"],
"type": 5673439900521455039,

View File

@ -10,12 +10,26 @@ struct Foo {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 15041163540773201510,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [14314859014962085433, 14727441168849658842],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 8508299082070213750,
"detailed_name": "ImplementedType",
"qual_name_offset": 0,
"detailed_name": "struct ImplementedType {}",
"qual_name_offset": 7,
"short_name": "ImplementedType",
"kind": 23,
"declarations": [],
@ -31,8 +45,8 @@ OUTPUT:
"uses": ["6:3-6:18|0|1|4"]
}, {
"usr": 13749354388332789217,
"detailed_name": "ForwardType",
"qual_name_offset": 0,
"detailed_name": "struct ForwardType",
"qual_name_offset": 7,
"short_name": "ForwardType",
"kind": 23,
"declarations": ["1:8-1:19|0|1|1"],
@ -46,8 +60,8 @@ OUTPUT:
"uses": ["5:3-5:14|0|1|4"]
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
@ -70,11 +84,11 @@ OUTPUT:
}],
"usr2var": [{
"usr": 14314859014962085433,
"detailed_name": "ForwardType *Foo::a",
"qual_name_offset": 13,
"detailed_name": "ForwFoo::ardType *a",
"qual_name_offset": 0,
"short_name": "a",
"declarations": [],
"spell": "5:16-5:17|15041163540773201510|2|2",
"spell": "5:16-5:17|15041163540773201510|2|514",
"extent": "5:3-5:17|15041163540773201510|2|0",
"type": 13749354388332789217,
"uses": [],
@ -86,7 +100,7 @@ OUTPUT:
"qual_name_offset": 16,
"short_name": "b",
"declarations": [],
"spell": "6:19-6:20|15041163540773201510|2|2",
"spell": "6:19-6:20|15041163540773201510|2|514",
"extent": "6:3-6:20|15041163540773201510|2|0",
"type": 8508299082070213750,
"uses": [],

View File

@ -10,7 +10,7 @@ void Foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4654328188330986029,
"detailed_name": "void Foo()",
@ -24,14 +24,14 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [16374832544037266261, 2580122838476012357],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 8508299082070213750,
"detailed_name": "ImplementedType",
"qual_name_offset": 0,
"detailed_name": "struct ImplementedType {}",
"qual_name_offset": 7,
"short_name": "ImplementedType",
"kind": 23,
"declarations": [],
@ -47,8 +47,8 @@ OUTPUT:
"uses": ["6:3-6:18|0|1|4"]
}, {
"usr": 13749354388332789217,
"detailed_name": "ForwardType",
"qual_name_offset": 0,
"detailed_name": "struct ForwardType",
"qual_name_offset": 7,
"short_name": "ForwardType",
"kind": 23,
"declarations": ["1:8-1:19|0|1|1"],
@ -76,7 +76,7 @@ OUTPUT:
}, {
"usr": 16374832544037266261,
"detailed_name": "ForwardType *a",
"qual_name_offset": 13,
"qual_name_offset": 0,
"short_name": "a",
"declarations": [],
"spell": "5:16-5:17|4654328188330986029|3|2",

View File

@ -7,7 +7,7 @@ void foo(ForwardType* f, ImplementedType a) {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 1699390678058422036,
"detailed_name": "void foo(ForwardType *f, ImplementedType a)",
@ -21,14 +21,14 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [13058491096576226774, 11055777568039014776],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 8508299082070213750,
"detailed_name": "ImplementedType",
"qual_name_offset": 0,
"detailed_name": "struct ImplementedType {}",
"qual_name_offset": 7,
"short_name": "ImplementedType",
"kind": 23,
"declarations": [],
@ -44,8 +44,8 @@ OUTPUT:
"uses": ["4:26-4:41|0|1|4"]
}, {
"usr": 13749354388332789217,
"detailed_name": "ForwardType",
"qual_name_offset": 0,
"detailed_name": "struct ForwardType",
"qual_name_offset": 7,
"short_name": "ForwardType",
"kind": 23,
"declarations": ["1:8-1:19|0|1|1"],
@ -64,7 +64,7 @@ OUTPUT:
"qual_name_offset": 16,
"short_name": "a",
"declarations": [],
"spell": "4:42-4:43|1699390678058422036|3|2",
"spell": "4:42-4:43|1699390678058422036|3|514",
"extent": "4:26-4:43|1699390678058422036|3|0",
"type": 8508299082070213750,
"uses": [],
@ -76,7 +76,7 @@ OUTPUT:
"qual_name_offset": 13,
"short_name": "f",
"declarations": [],
"spell": "4:23-4:24|1699390678058422036|3|2",
"spell": "4:23-4:24|1699390678058422036|3|514",
"extent": "4:10-4:24|1699390678058422036|3|0",
"type": 13749354388332789217,
"uses": [],

View File

@ -12,7 +12,7 @@ void foo(Foo* f, Foo*) {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 8908726657907936744,
"detailed_name": "void foo(Foo *f, Foo *)",
@ -22,18 +22,18 @@ OUTPUT:
"storage": 0,
"declarations": ["3:6-3:9|0|1|1"],
"spell": "4:6-4:9|0|1|2",
"extent": "4:1-4:26|0|1|0",
"extent": "3:1-3:23|0|1|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [13823260660189154978],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": ["1:8-1:11|0|1|1"],
@ -52,7 +52,7 @@ OUTPUT:
"qual_name_offset": 5,
"short_name": "f",
"declarations": [],
"spell": "4:15-4:16|8908726657907936744|3|2",
"spell": "4:15-4:16|8908726657907936744|3|514",
"extent": "4:10-4:16|8908726657907936744|3|0",
"type": 15041163540773201510,
"uses": [],

View File

@ -4,7 +4,7 @@ void foo(ForwardType*) {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 15327735280790448926,
"detailed_name": "void foo(ForwardType *)",
@ -24,8 +24,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 13749354388332789217,
"detailed_name": "ForwardType",
"qual_name_offset": 0,
"detailed_name": "struct ForwardType",
"qual_name_offset": 7,
"short_name": "ForwardType",
"kind": 23,
"declarations": ["1:8-1:19|0|1|1"],

View File

@ -10,7 +10,7 @@ void foo(Type& a0, const Type& a1) {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 16858540520096802573,
"detailed_name": "void foo(Type &a0, const Type &a1)",
@ -24,14 +24,14 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [7997456978847868736, 17228576662112939520, 15429032129697337561, 6081981442495435784, 5004072032239834773, 14939253431683105646],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 13487927231218873822,
"detailed_name": "Type",
"qual_name_offset": 0,
"detailed_name": "struct Type {}",
"qual_name_offset": 7,
"short_name": "Type",
"kind": 23,
"declarations": [],
@ -76,7 +76,7 @@ OUTPUT:
"qual_name_offset": 6,
"short_name": "a0",
"declarations": [],
"spell": "3:16-3:18|16858540520096802573|3|2",
"spell": "3:16-3:18|16858540520096802573|3|514",
"extent": "3:10-3:18|16858540520096802573|3|0",
"type": 13487927231218873822,
"uses": [],
@ -113,7 +113,7 @@ OUTPUT:
"qual_name_offset": 12,
"short_name": "a1",
"declarations": [],
"spell": "3:32-3:34|16858540520096802573|3|2",
"spell": "3:32-3:34|16858540520096802573|3|514",
"extent": "3:20-3:34|16858540520096802573|3|0",
"type": 13487927231218873822,
"uses": [],

View File

@ -4,12 +4,12 @@ static Type t;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 13487927231218873822,
"detailed_name": "Type",
"qual_name_offset": 0,
"detailed_name": "struct Type {}",
"qual_name_offset": 7,
"short_name": "Type",
"kind": 23,
"declarations": [],
@ -26,8 +26,8 @@ OUTPUT:
}],
"usr2var": [{
"usr": 6601831367240627080,
"detailed_name": "Type t",
"qual_name_offset": 5,
"detailed_name": "static Type t",
"qual_name_offset": 0,
"short_name": "t",
"declarations": [],
"spell": "2:13-2:14|0|1|2",

View File

@ -21,7 +21,7 @@ static Type* bar() { return nullptr; }
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4240751906910175539,
"detailed_name": "void Foo::Empty()",
@ -29,10 +29,10 @@ OUTPUT:
"short_name": "Empty",
"kind": 6,
"storage": 0,
"declarations": ["9:8-9:13|15041163540773201510|2|1"],
"spell": "13:11-13:16|15041163540773201510|2|2",
"extent": "13:1-13:21|0|1|0",
"declaring_type": 15041163540773201510,
"declarations": ["9:8-9:13|15041163540773201510|2|513"],
"spell": "13:11-13:16|15041163540773201510|2|514",
"extent": "9:3-9:15|15041163540773201510|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -47,7 +47,7 @@ OUTPUT:
"storage": 0,
"declarations": ["3:7-3:10|0|1|1", "4:7-4:10|0|1|1"],
"spell": "5:7-5:10|0|1|2",
"extent": "5:1-5:32|0|1|0",
"extent": "3:1-3:12|0|1|0",
"declaring_type": 0,
"bases": [],
"derived": [],
@ -60,7 +60,7 @@ OUTPUT:
"qual_name_offset": 19,
"short_name": "external",
"kind": 12,
"storage": 1,
"storage": 0,
"declarations": ["15:20-15:28|0|1|1"],
"declaring_type": 0,
"bases": [],
@ -75,10 +75,10 @@ OUTPUT:
"short_name": "Get",
"kind": 6,
"storage": 0,
"declarations": ["8:9-8:12|15041163540773201510|2|1"],
"spell": "12:12-12:15|15041163540773201510|2|2",
"extent": "12:1-12:40|0|1|0",
"declaring_type": 15041163540773201510,
"declarations": ["8:9-8:12|15041163540773201510|2|513"],
"spell": "12:12-12:15|15041163540773201510|2|514",
"extent": "8:3-8:17|15041163540773201510|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
@ -90,10 +90,10 @@ OUTPUT:
"qual_name_offset": 13,
"short_name": "bar",
"kind": 12,
"storage": 2,
"storage": 0,
"declarations": ["17:14-17:17|0|1|1"],
"spell": "18:14-18:17|0|1|2",
"extent": "18:1-18:39|0|1|0",
"extent": "17:1-17:19|0|1|0",
"declaring_type": 0,
"bases": [],
"derived": [],
@ -103,8 +103,8 @@ OUTPUT:
}],
"usr2type": [{
"usr": 13487927231218873822,
"detailed_name": "Type",
"qual_name_offset": 0,
"detailed_name": "struct Type",
"qual_name_offset": 7,
"short_name": "Type",
"kind": 23,
"declarations": ["1:8-1:12|0|1|1"],
@ -118,8 +118,8 @@ OUTPUT:
"uses": ["3:1-3:5|0|1|4", "4:1-4:5|0|1|4", "5:1-5:5|0|1|4", "8:3-8:7|0|1|4", "12:1-12:5|0|1|4", "15:14-15:18|0|1|4", "17:8-17:12|0|1|4", "18:8-18:12|0|1|4"]
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],

View File

@ -13,7 +13,7 @@ void accept3(Foo3*) {}
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 558620830317390922,
"detailed_name": "void accept1(Foo1 *)",
@ -80,27 +80,11 @@ OUTPUT:
"callees": []
}],
"usr2type": [{
"usr": 17,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"declarations": [],
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": []
}, {
"usr": 1544499294580512394,
"detailed_name": "Foo1",
"qual_name_offset": 0,
"detailed_name": "using Foo1 = Foo *",
"qual_name_offset": 6,
"short_name": "Foo1",
"kind": 252,
"hover": "using Foo1 = Foo*",
"declarations": [],
"spell": "2:7-2:11|0|1|2",
"extent": "2:1-2:18|0|1|0",
@ -111,29 +95,28 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["2:7-2:11|0|1|4", "4:14-4:18|0|1|4", "8:14-8:18|0|1|4"]
"uses": ["4:14-4:18|0|1|4", "8:14-8:18|0|1|4"]
}, {
"usr": 2638219001294786365,
"detailed_name": "Foo4",
"qual_name_offset": 0,
"detailed_name": "using Foo4 = int",
"qual_name_offset": 6,
"short_name": "Foo4",
"kind": 252,
"hover": "using Foo4 = int",
"declarations": [],
"spell": "5:7-5:11|0|1|2",
"extent": "5:1-5:17|0|1|0",
"alias_of": 17,
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["5:7-5:11|0|1|4"]
"uses": []
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": ["1:8-1:11|0|1|1"],
@ -147,11 +130,10 @@ OUTPUT:
"uses": ["2:14-2:17|0|1|4", "3:9-3:12|0|1|4", "7:13-7:16|0|1|4"]
}, {
"usr": 15466821155413653804,
"detailed_name": "Foo2",
"qual_name_offset": 0,
"detailed_name": "typedef Foo Foo2",
"qual_name_offset": 12,
"short_name": "Foo2",
"kind": 252,
"hover": "typedef Foo Foo2",
"declarations": [],
"spell": "3:13-3:17|0|1|2",
"extent": "3:1-3:17|0|1|0",
@ -162,14 +144,13 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["3:13-3:17|0|1|4", "9:14-9:18|0|1|4"]
"uses": ["9:14-9:18|0|1|4"]
}, {
"usr": 17897026942631673064,
"detailed_name": "Foo3",
"qual_name_offset": 0,
"detailed_name": "using Foo3 = Foo1",
"qual_name_offset": 6,
"short_name": "Foo3",
"kind": 252,
"hover": "using Foo3 = Foo1",
"declarations": [],
"spell": "4:7-4:11|0|1|2",
"extent": "4:1-4:18|0|1|0",
@ -180,7 +161,7 @@ OUTPUT:
"funcs": [],
"vars": [],
"instances": [],
"uses": ["4:7-4:11|0|1|4", "10:14-10:18|0|1|4"]
"uses": ["10:14-10:18|0|1|4"]
}],
"usr2var": []
}

View File

@ -8,32 +8,31 @@ typedef Foo<Foo1> Foo2;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [],
"usr2type": [{
"usr": 1544499294580512394,
"detailed_name": "Foo1",
"qual_name_offset": 0,
"detailed_name": "using Foo1 = Foo<int>",
"qual_name_offset": 6,
"short_name": "Foo1",
"kind": 252,
"hover": "using Foo1 = Foo<int>",
"declarations": [],
"spell": "4:7-4:11|0|1|2",
"extent": "4:1-4:22|0|1|0",
"alias_of": 10528472276654770367,
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["4:7-4:11|0|1|4", "5:13-5:17|0|1|4"]
"uses": ["5:13-5:17|0|1|4"]
}, {
"usr": 10528472276654770367,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 5,
"kind": 23,
"declarations": ["2:8-2:11|0|1|1"],
"alias_of": 0,
"bases": [],
@ -45,22 +44,21 @@ OUTPUT:
"uses": ["4:14-4:17|0|1|4", "5:9-5:12|0|1|4"]
}, {
"usr": 15933698173231330933,
"detailed_name": "Foo2",
"qual_name_offset": 0,
"detailed_name": "typedef Foo<Foo1> Foo2",
"qual_name_offset": 18,
"short_name": "Foo2",
"kind": 252,
"hover": "typedef Foo<Foo1> Foo2",
"declarations": [],
"spell": "5:19-5:23|0|1|2",
"extent": "5:1-5:23|0|1|0",
"alias_of": 10528472276654770367,
"alias_of": 0,
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"vars": [],
"instances": [],
"uses": ["5:19-5:23|0|1|4"]
"uses": []
}],
"usr2var": []
}

View File

@ -13,7 +13,7 @@ extern Foo foo;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 9488177941273031343,
"detailed_name": "Foo *Foo::make()",
@ -21,20 +21,20 @@ OUTPUT:
"short_name": "make",
"kind": 6,
"storage": 0,
"declarations": ["2:8-2:12|15041163540773201510|2|1"],
"spell": "5:11-5:15|15041163540773201510|2|2",
"extent": "5:1-8:2|0|1|0",
"declaring_type": 15041163540773201510,
"declarations": ["2:8-2:12|15041163540773201510|2|513"],
"spell": "5:11-5:15|15041163540773201510|2|514",
"extent": "2:3-2:14|15041163540773201510|2|0",
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [16380484338511689669],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
@ -51,8 +51,8 @@ OUTPUT:
}],
"usr2var": [{
"usr": 14455976355866885943,
"detailed_name": "Foo foo",
"qual_name_offset": 4,
"detailed_name": "extern Foo foo",
"qual_name_offset": 11,
"short_name": "foo",
"declarations": ["10:12-10:15|0|1|1"],
"type": 15041163540773201510,

View File

@ -18,7 +18,7 @@ void foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",
@ -32,9 +32,9 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [8039186520399841081],
"vars": [],
"uses": [],
"callees": ["14:3-14:9|18319417758892371313|3|32", "14:14-14:17|11404602816585117695|3|32"]
"callees": []
}, {
"usr": 11404602816585117695,
"detailed_name": "int gen()",
@ -47,7 +47,21 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["14:14-14:17|4259594751088586730|3|32"],
"uses": ["14:14-14:17|0|1|8228"],
"callees": []
}, {
"usr": 15041163540773201510,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [11489549839875479478, 9648311402855509901, 11489549839875479478],
"uses": [],
"callees": []
}, {
"usr": 18319417758892371313,
@ -61,11 +75,11 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["14:3-14:9|4259594751088586730|3|32"],
"uses": ["14:3-14:9|0|1|8228"],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -77,12 +91,12 @@ OUTPUT:
"types": [],
"funcs": [],
"vars": [],
"instances": [11489549839875479478, 9648311402855509901, 8039186520399841081],
"instances": [11489549839875479478, 9648311402855509901, 11489549839875479478, 8039186520399841081],
"uses": []
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
@ -96,9 +110,6 @@ OUTPUT:
"vars": [{
"L": 9648311402855509901,
"R": 0
}, {
"L": 11489549839875479478,
"R": -1
}],
"instances": [],
"uses": ["10:5-10:8|0|1|4", "14:22-14:25|0|1|4", "14:40-14:43|0|1|4"]
@ -112,8 +123,8 @@ OUTPUT:
"declarations": [],
"spell": "13:7-13:8|4259594751088586730|3|2",
"extent": "13:3-13:12|4259594751088586730|3|0",
"type": 17,
"uses": ["14:10-14:11|4259594751088586730|3|4"],
"type": 53,
"uses": ["14:10-14:11|4259594751088586730|3|12"],
"kind": 13,
"storage": 0
}, {
@ -122,25 +133,25 @@ OUTPUT:
"qual_name_offset": 4,
"short_name": "field_var",
"declarations": [],
"spell": "7:7-7:16|15041163540773201510|2|2",
"spell": "7:7-7:16|15041163540773201510|2|514",
"extent": "7:3-7:16|15041163540773201510|2|0",
"type": 17,
"uses": ["14:28-14:37|4259594751088586730|3|4"],
"type": 53,
"uses": ["14:28-14:37|15041163540773201510|2|12"],
"kind": 8,
"storage": 0
}, {
"usr": 11489549839875479478,
"detailed_name": "int Foo::static_var",
"qual_name_offset": 4,
"detailed_name": "static int Foo::static_var",
"qual_name_offset": 11,
"short_name": "static_var",
"hover": "int Foo::static_var = 0",
"declarations": ["6:14-6:24|15041163540773201510|2|1"],
"spell": "10:10-10:20|15041163540773201510|2|2",
"extent": "10:1-10:24|0|1|0",
"type": 17,
"uses": ["14:45-14:55|4259594751088586730|3|4"],
"kind": 8,
"storage": 0
"declarations": ["6:14-6:24|15041163540773201510|2|513"],
"spell": "10:10-10:20|15041163540773201510|2|514",
"extent": "6:3-6:24|15041163540773201510|2|0",
"type": 53,
"uses": ["14:45-14:55|15041163540773201510|2|12"],
"kind": 13,
"storage": 2
}]
}
*/

View File

@ -10,7 +10,7 @@ void foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",
@ -26,7 +26,7 @@ OUTPUT:
"derived": [],
"vars": [],
"uses": [],
"callees": ["6:3-6:9|18319417758892371313|3|32", "6:10-6:13|11404602816585117695|3|32", "6:18-6:21|11404602816585117695|3|32"]
"callees": []
}, {
"usr": 11404602816585117695,
"detailed_name": "int gen()",
@ -41,7 +41,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["6:10-6:13|4259594751088586730|3|32", "6:18-6:21|4259594751088586730|3|32"],
"uses": ["6:10-6:13|0|1|8228", "6:18-6:21|0|1|8228"],
"callees": []
}, {
"usr": 18319417758892371313,
@ -55,7 +55,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["6:3-6:9|4259594751088586730|3|32"],
"uses": ["6:3-6:9|0|1|8228"],
"callees": []
}],
"usr2type": [],

View File

@ -11,7 +11,7 @@ void caller() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 468307235068920063,
"detailed_name": "void called()",
@ -26,7 +26,7 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["4:13-4:19|11404881820527069090|3|32", "7:3-7:9|11404881820527069090|3|32"],
"uses": ["4:13-4:19|0|1|132", "7:3-7:9|0|1|8228"],
"callees": []
}, {
"usr": 11404881820527069090,
@ -41,22 +41,22 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [9121974011454213596],
"vars": [],
"uses": [],
"callees": ["4:13-4:19|468307235068920063|3|32", "4:13-4:19|468307235068920063|3|32", "7:3-7:9|468307235068920063|3|32"]
"callees": []
}],
"usr2type": [],
"usr2var": [{
"usr": 9121974011454213596,
"detailed_name": "void (*)() x",
"qual_name_offset": 11,
"detailed_name": "auto x",
"qual_name_offset": 5,
"short_name": "x",
"hover": "void (*)() x = &called",
"hover": "auto x = &called",
"declarations": [],
"spell": "4:8-4:9|11404881820527069090|3|2",
"extent": "4:3-4:19|11404881820527069090|3|0",
"type": 0,
"uses": ["5:3-5:4|11404881820527069090|3|4"],
"uses": ["5:3-5:4|11404881820527069090|3|8236"],
"kind": 13,
"storage": 0
}]

View File

@ -21,7 +21,7 @@ void foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",
@ -35,9 +35,9 @@ OUTPUT:
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [14669930844300034456],
"vars": [],
"uses": [],
"callees": ["14:3-14:9|17175780305784503374|3|32", "15:3-15:9|17175780305784503374|3|32", "16:3-16:9|12086644540399881766|3|32", "17:3-17:9|17175780305784503374|3|32"]
"callees": []
}, {
"usr": 12086644540399881766,
"detailed_name": "void accept(int *)",
@ -50,7 +50,21 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["16:3-16:9|4259594751088586730|3|32"],
"uses": ["16:3-16:9|0|1|8228"],
"callees": []
}, {
"usr": 15041163540773201510,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [4220150017963593039, 3873837747174060388],
"uses": [],
"callees": []
}, {
"usr": 17175780305784503374,
@ -64,11 +78,11 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["14:3-14:9|4259594751088586730|3|32", "15:3-15:9|4259594751088586730|3|32", "17:3-17:9|4259594751088586730|3|32"],
"uses": ["14:3-14:9|0|1|8228", "15:3-15:9|0|1|8228", "17:3-17:9|0|1|8228"],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -84,8 +98,8 @@ OUTPUT:
"uses": []
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
@ -112,10 +126,10 @@ OUTPUT:
"qual_name_offset": 4,
"short_name": "y",
"declarations": [],
"spell": "4:7-4:8|15041163540773201510|2|2",
"spell": "4:7-4:8|15041163540773201510|2|514",
"extent": "4:3-4:8|15041163540773201510|2|0",
"type": 17,
"uses": ["17:12-17:13|4259594751088586730|3|4"],
"type": 53,
"uses": ["17:12-17:13|15041163540773201510|2|12"],
"kind": 8,
"storage": 0
}, {
@ -124,10 +138,10 @@ OUTPUT:
"qual_name_offset": 4,
"short_name": "x",
"declarations": [],
"spell": "3:7-3:8|15041163540773201510|2|2",
"spell": "3:7-3:8|15041163540773201510|2|514",
"extent": "3:3-3:8|15041163540773201510|2|0",
"type": 17,
"uses": ["12:5-12:6|4259594751088586730|3|4", "13:5-13:6|4259594751088586730|3|4", "14:12-14:13|4259594751088586730|3|4", "15:12-15:13|4259594751088586730|3|4", "16:13-16:14|4259594751088586730|3|4"],
"type": 53,
"uses": ["12:5-12:6|15041163540773201510|2|20", "13:5-13:6|15041163540773201510|2|4", "14:12-14:13|15041163540773201510|2|12", "15:12-15:13|15041163540773201510|2|12", "16:13-16:14|15041163540773201510|2|132"],
"kind": 8,
"storage": 0
}, {

View File

@ -12,7 +12,7 @@ void foo() {
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 4259594751088586730,
"detailed_name": "void foo()",
@ -28,7 +28,21 @@ OUTPUT:
"derived": [],
"vars": [],
"uses": [],
"callees": ["8:3-8:9|17175780305784503374|3|32"]
"callees": []
}, {
"usr": 15041163540773201510,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [8599782646965457351],
"uses": [],
"callees": []
}, {
"usr": 17175780305784503374,
"detailed_name": "void accept(int)",
@ -41,11 +55,11 @@ OUTPUT:
"bases": [],
"derived": [],
"vars": [],
"uses": ["8:3-8:9|4259594751088586730|3|32"],
"uses": ["8:3-8:9|0|1|8228"],
"callees": []
}],
"usr2type": [{
"usr": 17,
"usr": 53,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
@ -61,8 +75,8 @@ OUTPUT:
"uses": []
}, {
"usr": 15041163540773201510,
"detailed_name": "Foo",
"qual_name_offset": 0,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
@ -79,13 +93,13 @@ OUTPUT:
}],
"usr2var": [{
"usr": 8599782646965457351,
"detailed_name": "int Foo::x",
"qual_name_offset": 4,
"detailed_name": "static int Foo::x",
"qual_name_offset": 11,
"short_name": "x",
"declarations": ["2:14-2:15|15041163540773201510|2|1"],
"type": 17,
"uses": ["8:15-8:16|4259594751088586730|3|4"],
"kind": 8,
"declarations": ["2:14-2:15|15041163540773201510|2|513"],
"type": 53,
"uses": ["8:15-8:16|15041163540773201510|2|12"],
"kind": 13,
"storage": 2
}]
}

View File

@ -11,12 +11,26 @@ const VarType Holder::static_var;
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"usr2func": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 10028537921178202800,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [7057400933868440116, 7057400933868440116],
"uses": [],
"callees": []
}],
"usr2type": [{
"usr": 5792006888140599735,
"detailed_name": "VarType",
"qual_name_offset": 0,
"detailed_name": "enum VarType {\n}",
"qual_name_offset": 5,
"short_name": "VarType",
"kind": 10,
"declarations": [],
@ -28,12 +42,12 @@ OUTPUT:
"types": [],
"funcs": [],
"vars": [],
"instances": [7057400933868440116],
"instances": [7057400933868440116, 7057400933868440116],
"uses": ["4:20-4:27|0|1|4", "4:42-4:49|0|1|4", "7:7-7:14|0|1|4"]
}, {
"usr": 10028537921178202800,
"detailed_name": "Holder",
"qual_name_offset": 0,
"detailed_name": "struct Holder {}",
"qual_name_offset": 7,
"short_name": "Holder",
"kind": 23,
"declarations": [],
@ -44,26 +58,23 @@ OUTPUT:
"derived": [],
"types": [],
"funcs": [],
"vars": [{
"L": 7057400933868440116,
"R": -1
}],
"vars": [],
"instances": [],
"uses": ["7:15-7:21|0|1|4"]
}],
"usr2var": [{
"usr": 7057400933868440116,
"detailed_name": "const VarType Holder::static_var",
"qual_name_offset": 14,
"detailed_name": "static constexpr VarType Holder::static_var",
"qual_name_offset": 25,
"short_name": "static_var",
"hover": "const VarType Holder::static_var = (VarType)0x0",
"declarations": ["4:28-4:38|10028537921178202800|2|1"],
"spell": "7:23-7:33|10028537921178202800|2|2",
"extent": "7:1-7:33|0|1|0",
"hover": "static constexpr VarType Holder::static_var = (VarType)0",
"declarations": ["4:28-4:38|10028537921178202800|2|513"],
"spell": "7:23-7:33|10028537921178202800|2|514",
"extent": "4:3-4:53|10028537921178202800|2|0",
"type": 5792006888140599735,
"uses": [],
"kind": 8,
"storage": 0
"kind": 13,
"storage": 2
}]
}
*/

Some files were not shown because too many files have changed in this diff Show More