Use ContainerDC for extent, index callees, set StaticMethod

This commit is contained in:
Fangrui Song 2018-07-20 23:27:47 -07:00
parent c50f0c5900
commit 3b997b12ad
69 changed files with 196 additions and 174 deletions

View File

@ -26,7 +26,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["7:7-7:8|15041163540773201510|2|16676", "8:17-8:20|15041163540773201510|2|16676"], "uses": ["7:7-7:8|4259594751088586730|3|16676", "8:17-8:20|4259594751088586730|3|16676"],
"callees": [] "callees": []
}, { }, {
"usr": 4259594751088586730, "usr": 4259594751088586730,
@ -42,7 +42,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [10983126130596230582, 17165811951126099095], "vars": [10983126130596230582, 17165811951126099095],
"uses": [], "uses": [],
"callees": [] "callees": ["7:7-7:8|3385168158331140247|3|16676", "7:7-7:8|3385168158331140247|3|16676", "8:17-8:20|3385168158331140247|3|16676", "8:17-8:20|3385168158331140247|3|16676"]
}], }],
"usr2type": [{ "usr2type": [{
"usr": 15041163540773201510, "usr": 15041163540773201510,
@ -60,7 +60,7 @@ OUTPUT:
"funcs": [3385168158331140247], "funcs": [3385168158331140247],
"vars": [], "vars": [],
"instances": [10983126130596230582, 17165811951126099095], "instances": [10983126130596230582, 17165811951126099095],
"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"] "uses": ["3:3-3:6|15041163540773201510|2|4", "7:3-7:6|4259594751088586730|3|4", "8:3-8:6|4259594751088586730|3|4", "8:17-8:20|4259594751088586730|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 10983126130596230582, "usr": 10983126130596230582,

View File

@ -31,7 +31,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["8:7-8:8|15041163540773201510|2|16676"], "uses": ["8:7-8:8|4259594751088586730|3|16676"],
"callees": [] "callees": []
}, { }, {
"usr": 4259594751088586730, "usr": 4259594751088586730,
@ -47,7 +47,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [1893354193220338759], "vars": [1893354193220338759],
"uses": [], "uses": [],
"callees": [] "callees": ["8:7-8:8|3385168158331140247|3|16676", "8:7-8:8|3385168158331140247|3|16676"]
}, { }, {
"usr": 7440261702884428359, "usr": 7440261702884428359,
"detailed_name": "Foo::~Foo() noexcept", "detailed_name": "Foo::~Foo() noexcept",
@ -80,7 +80,7 @@ OUTPUT:
"funcs": [3385168158331140247, 7440261702884428359], "funcs": [3385168158331140247, 7440261702884428359],
"vars": [], "vars": [],
"instances": [1893354193220338759], "instances": [1893354193220338759],
"uses": ["3:3-3:6|0|1|4", "4:4-4:7|0|1|4", "8:3-8:6|0|1|4"] "uses": ["3:3-3:6|15041163540773201510|2|4", "4:4-4:7|15041163540773201510|2|4", "8:3-8:6|4259594751088586730|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 1893354193220338759, "usr": 1893354193220338759,

View File

@ -26,7 +26,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [449111627548814328, 17097499197730163115], "vars": [449111627548814328, 17097499197730163115],
"uses": [], "uses": [],
"callees": [] "callees": ["6:8-6:12|10530961286677896857|3|16676", "6:8-6:12|10530961286677896857|3|16676", "7:15-7:19|10530961286677896857|3|16676", "7:15-7:19|10530961286677896857|3|16676"]
}, { }, {
"usr": 10530961286677896857, "usr": 10530961286677896857,
"detailed_name": "Type::Type()", "detailed_name": "Type::Type()",
@ -40,7 +40,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["6:8-6:12|13487927231218873822|2|16676", "7:15-7:19|13487927231218873822|2|16676"], "uses": ["6:8-6:12|3957104924306079513|3|16676", "7:15-7:19|3957104924306079513|3|16676"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -59,7 +59,7 @@ OUTPUT:
"funcs": [10530961286677896857], "funcs": [10530961286677896857],
"vars": [], "vars": [],
"instances": [449111627548814328, 17097499197730163115], "instances": [449111627548814328, 17097499197730163115],
"uses": ["2:3-2:7|0|1|4", "6:3-6:7|0|1|4", "7:15-7:19|0|1|4"] "uses": ["2:3-2:7|13487927231218873822|2|4", "6:3-6:7|3957104924306079513|3|4", "7:15-7:19|3957104924306079513|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 449111627548814328, "usr": 449111627548814328,

View File

@ -21,7 +21,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": [], "declarations": [],
"spell": "4:6-4:9|15041163540773201510|2|1026", "spell": "4:6-4:9|15041163540773201510|2|1026",
"extent": "4:1-4:11|0|1|0", "extent": "4:1-4:11|15041163540773201510|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
@ -44,7 +44,7 @@ OUTPUT:
"funcs": [17319723337446061757], "funcs": [17319723337446061757],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["4:1-4:4|0|1|4", "4:6-4:9|0|1|4"] "uses": ["4:1-4:4|0|1|4", "4:6-4:9|15041163540773201510|2|4"]
}], }],
"usr2var": [] "usr2var": []
} }

View File

@ -105,7 +105,7 @@ OUTPUT: make_functions.h
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["7:17-7:20|0|1|4", "8:15-8:18|0|1|4"] "uses": ["7:17-7:20|14935975554338052500|2|4", "8:15-8:18|14935975554338052500|2|4"]
}, { }, {
"usr": 14935975554338052500, "usr": 14935975554338052500,
"detailed_name": "class Foobar {}", "detailed_name": "class Foobar {}",
@ -122,7 +122,7 @@ OUTPUT: make_functions.h
"funcs": [13131778807733950299, 13028995015627606181, 3765833212244435302, 17321436359755983845], "funcs": [13131778807733950299, 13028995015627606181, 3765833212244435302, 17321436359755983845],
"vars": [], "vars": [],
"instances": [], "instances": [],
"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"] "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"]
}], }],
"usr2var": [] "usr2var": []
} }
@ -159,7 +159,7 @@ OUTPUT: make_functions.cc
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [3908732770590594660], "vars": [3908732770590594660],
"uses": ["17:3-17:14|0|1|16420"], "uses": ["17:3-17:14|2816883305867289955|3|16420"],
"callees": [] "callees": []
}, { }, {
"usr": 2816883305867289955, "usr": 2816883305867289955,
@ -175,7 +175,7 @@ OUTPUT: make_functions.cc
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["14:3-14:13|15793662558620604611|3|16420", "15:3-15:13|15793662558620604611|3|16420", "16:3-16:13|15793662558620604611|3|16420", "17:3-17:14|2532818908869373467|3|16420"]
}, { }, {
"usr": 11138976705878544996, "usr": 11138976705878544996,
"detailed_name": "", "detailed_name": "",
@ -215,7 +215,7 @@ OUTPUT: make_functions.cc
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [8463700030555379526], "vars": [8463700030555379526],
"uses": ["14:3-14:13|0|1|16420", "15:3-15:13|0|1|16420", "16:3-16:13|0|1|16420"], "uses": ["14:3-14:13|2816883305867289955|3|16420", "15:3-15:13|2816883305867289955|3|16420", "16:3-16:13|2816883305867289955|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -262,7 +262,7 @@ OUTPUT: make_functions.cc
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["16:29-16:32|0|1|4", "17:30-17:33|0|1|4"] "uses": ["16:29-16:32|2816883305867289955|3|4", "17:30-17:33|2816883305867289955|3|4"]
}, { }, {
"usr": 14935975554338052500, "usr": 14935975554338052500,
"detailed_name": "class Foobar {}", "detailed_name": "class Foobar {}",
@ -277,7 +277,7 @@ OUTPUT: make_functions.cc
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["14:14-14:20|0|1|4", "15:14-15:20|0|1|4", "16:14-16:20|0|1|4", "17:15-17:21|0|1|4"] "uses": ["14:14-14:20|2816883305867289955|3|4", "15:14-15:20|2816883305867289955|3|4", "16:14-16:20|2816883305867289955|3|4", "17:15-17:21|2816883305867289955|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 180270746871803062, "usr": 180270746871803062,

View File

@ -50,7 +50,7 @@ OUTPUT:
"short_name": "foo", "short_name": "foo",
"declarations": ["2:14-2:17|15041163540773201510|2|1025"], "declarations": ["2:14-2:17|15041163540773201510|2|1025"],
"spell": "5:10-5:13|15041163540773201510|2|1026", "spell": "5:10-5:13|15041163540773201510|2|1026",
"extent": "5:1-5:13|0|1|0", "extent": "5:1-5:13|15041163540773201510|2|0",
"type": 53, "type": 53,
"uses": [], "uses": [],
"kind": 13, "kind": 13,

View File

@ -46,7 +46,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["4:8-4:11|15041163540773201510|2|1025"], "declarations": ["4:8-4:11|15041163540773201510|2|1025"],
"spell": "7:11-7:14|15041163540773201510|2|1026", "spell": "7:11-7:14|15041163540773201510|2|1026",
"extent": "7:1-7:19|0|1|0", "extent": "7:1-7:19|15041163540773201510|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],

View File

@ -39,7 +39,7 @@ OUTPUT:
"spell": "2:3-2:4|16985894625255407295|2|1026", "spell": "2:3-2:4|16985894625255407295|2|1026",
"extent": "2:3-2:4|16985894625255407295|2|0", "extent": "2:3-2:4|16985894625255407295|2|0",
"type": 0, "type": 0,
"uses": ["6:14-6:15|16985894625255407295|2|4"], "uses": ["6:14-6:15|0|1|4"],
"kind": 22, "kind": 22,
"storage": 0 "storage": 0
}, { }, {

View File

@ -115,7 +115,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["9:9-9:14|10528472276654770367|2|4"] "uses": ["9:9-9:14|0|1|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 12028309045033782423, "usr": 12028309045033782423,

View File

@ -23,7 +23,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["2:24-2:30|0|1|2052"] "uses": ["2:24-2:30|10963370434658308541|2|2052"]
}, { }, {
"usr": 10963370434658308541, "usr": 10963370434658308541,
"detailed_name": "class Derived : public Parent {}", "detailed_name": "class Derived : public Parent {}",

View File

@ -34,7 +34,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["13:43-13:51|0|1|2052"] "uses": ["13:43-13:51|10963370434658308541|2|2052"]
}, { }, {
"usr": 10651399730831737929, "usr": 10651399730831737929,
"detailed_name": "class Derived2 : Base2<T> {}", "detailed_name": "class Derived2 : Base2<T> {}",
@ -51,7 +51,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["13:56-13:64|0|1|2052"] "uses": ["13:56-13:64|10963370434658308541|2|2052"]
}, { }, {
"usr": 10963370434658308541, "usr": 10963370434658308541,
"detailed_name": "class Derived : Base1<3>, Base2<Derived>, Derived1<4>, Derived2<Derived> {}", "detailed_name": "class Derived : Base1<3>, Base2<Derived>, Derived1<4>, Derived2<Derived> {}",
@ -68,7 +68,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["13:33-13:40|0|1|2052", "13:65-13:72|0|1|2052"] "uses": ["13:33-13:40|10963370434658308541|2|2052", "13:65-13:72|10963370434658308541|2|2052"]
}, { }, {
"usr": 11118288764693061434, "usr": 11118288764693061434,
"detailed_name": "class Base2 {}", "detailed_name": "class Base2 {}",
@ -85,7 +85,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["13:27-13:32|0|1|2052"] "uses": ["13:27-13:32|10963370434658308541|2|2052"]
}, { }, {
"usr": 11930058224338108382, "usr": 11930058224338108382,
"detailed_name": "class Base1 {}", "detailed_name": "class Base1 {}",
@ -102,7 +102,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["13:17-13:22|0|1|2052"] "uses": ["13:17-13:22|10963370434658308541|2|2052"]
}], }],
"usr2var": [] "usr2var": []
} }

View File

@ -25,7 +25,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["2:24-2:28|0|1|2052", "3:24-3:28|0|1|2052"] "uses": ["2:24-2:28|11863524815063131483|2|2052", "3:24-3:28|14022569716337624303|2|2052"]
}, { }, {
"usr": 10963370434658308541, "usr": 10963370434658308541,
"detailed_name": "class Derived : public MiddleA, public MiddleB {}", "detailed_name": "class Derived : public MiddleA, public MiddleB {}",
@ -59,7 +59,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["4:24-4:31|0|1|2052"] "uses": ["4:24-4:31|10963370434658308541|2|2052"]
}, { }, {
"usr": 14022569716337624303, "usr": 14022569716337624303,
"detailed_name": "class MiddleB : public Root {}", "detailed_name": "class MiddleB : public Root {}",
@ -76,7 +76,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["4:40-4:47|0|1|2052"] "uses": ["4:40-4:47|10963370434658308541|2|2052"]
}], }],
"usr2var": [] "usr2var": []
} }

View File

@ -55,7 +55,7 @@ OUTPUT:
"funcs": [9948027785633571339], "funcs": [9948027785633571339],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["4:24-4:28|0|1|2052"] "uses": ["4:24-4:28|10963370434658308541|2|2052"]
}, { }, {
"usr": 10963370434658308541, "usr": 10963370434658308541,
"detailed_name": "class Derived : public Root {}", "detailed_name": "class Derived : public Root {}",

View File

@ -75,7 +75,7 @@ OUTPUT:
"funcs": [13164726294460837993], "funcs": [13164726294460837993],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["8:4-8:11|0|1|4"] "uses": ["8:4-8:11|10963370434658308541|2|4"]
}, { }, {
"usr": 11628904180681204356, "usr": 11628904180681204356,
"detailed_name": "struct Base0 {}", "detailed_name": "struct Base0 {}",
@ -92,7 +92,7 @@ OUTPUT:
"funcs": [16347272523198263017], "funcs": [16347272523198263017],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["2:12-2:17|0|1|4", "7:18-7:23|0|1|2052"] "uses": ["2:12-2:17|11628904180681204356|2|4", "7:18-7:23|10963370434658308541|2|2052"]
}, { }, {
"usr": 15826803741381445676, "usr": 15826803741381445676,
"detailed_name": "struct Base1 {}", "detailed_name": "struct Base1 {}",
@ -109,7 +109,7 @@ OUTPUT:
"funcs": [8401779086123965305], "funcs": [8401779086123965305],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["5:12-5:17|0|1|4", "7:25-7:30|0|1|2052"] "uses": ["5:12-5:17|15826803741381445676|2|4", "7:25-7:30|10963370434658308541|2|2052"]
}], }],
"usr2var": [] "usr2var": []
} }

View File

@ -30,7 +30,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [12666114896600231317, 2981279427664991319], "vars": [12666114896600231317, 2981279427664991319],
"uses": [], "uses": [],
"callees": [] "callees": ["9:14-9:15|17926497908620168464|3|16420", "10:14-10:15|17926497908620168464|3|16420", "11:14-11:15|17926497908620168464|3|16420"]
}, { }, {
"usr": 17926497908620168464, "usr": 17926497908620168464,
"detailed_name": "inline void foo()::(anon class)::operator()(int y) const", "detailed_name": "inline void foo()::(anon class)::operator()(int y) const",
@ -42,7 +42,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["9:14-9:15|14635009347499519042|2|16420", "10:14-10:15|14635009347499519042|2|16420", "11:14-11:15|14635009347499519042|2|16420"], "uses": ["9:14-9:15|4259594751088586730|3|16420", "10:14-10:15|4259594751088586730|3|16420", "11:14-11:15|4259594751088586730|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -110,9 +110,9 @@ OUTPUT:
"short_name": "y", "short_name": "y",
"declarations": [], "declarations": [],
"spell": "4:31-4:32|17926497908620168464|3|2", "spell": "4:31-4:32|17926497908620168464|3|2",
"extent": "4:27-4:32|17926497908620168464|3|0", "extent": "4:27-4:32|4259594751088586730|3|0",
"type": 0, "type": 0,
"uses": ["6:7-6:8|17926497908620168464|3|28"], "uses": ["6:7-6:8|4259594751088586730|3|28"],
"kind": 253, "kind": 253,
"storage": 0 "storage": 0
}] }]

View File

@ -30,7 +30,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["2:7-2:8|0|1|64|0", "3:7-3:8|0|1|64|0"], "uses": ["2:7-2:8|0|1|64|0", "3:7-3:8|0|1|64|0"],
"callees": [] "callees": ["12:5-12:10|14400399977994209582|3|16420"]
}, { }, {
"usr": 14400399977994209582, "usr": 14400399977994209582,
"detailed_name": "int make1()", "detailed_name": "int make1()",
@ -44,7 +44,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["12:5-12:10|0|1|16420", "12:5-12:10|0|1|64|0"], "uses": ["12:5-12:10|9720930732776154610|3|16420", "12:5-12:10|0|1|64|0"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -73,7 +73,7 @@ OUTPUT:
"spell": "9:11-9:16|0|1|2", "spell": "9:11-9:16|0|1|2",
"extent": "9:1-9:20|0|1|0", "extent": "9:1-9:20|0|1|0",
"type": 53, "type": 53,
"uses": ["12:14-12:19|0|1|12", "12:14-12:19|0|1|64|0"], "uses": ["12:14-12:19|9720930732776154610|3|12", "12:14-12:19|0|1|64|0"],
"kind": 13, "kind": 13,
"storage": 0 "storage": 0
}, { }, {

View File

@ -59,7 +59,7 @@ OUTPUT:
"funcs": [13788753348312146871], "funcs": [13788753348312146871],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["5:12-5:15|0|1|4", "5:12-5:15|0|1|64|0"] "uses": ["5:12-5:15|15041163540773201510|2|4", "5:12-5:15|0|1|64|0"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 1569772797058982873, "usr": 1569772797058982873,

View File

@ -18,7 +18,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["2:8-2:11|15041163540773201510|2|1025"], "declarations": ["2:8-2:11|15041163540773201510|2|1025"],
"spell": "5:11-5:14|15041163540773201510|2|1026", "spell": "5:11-5:14|15041163540773201510|2|1026",
"extent": "5:1-5:25|0|1|0", "extent": "5:1-5:25|15041163540773201510|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],

View File

@ -107,7 +107,7 @@ OUTPUT: header.h
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["5:26-5:30|0|1|2052"] "uses": ["5:26-5:30|16750616846959666305|2|2052"]
}, { }, {
"usr": 16750616846959666305, "usr": 16750616846959666305,
"detailed_name": "struct SameFileDerived : Base {}", "detailed_name": "struct SameFileDerived : Base {}",
@ -212,11 +212,11 @@ OUTPUT: impl.cc
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["4:3-4:7|11650481237659640387|3|16420"]
}, { }, {
"usr": 11650481237659640387, "usr": 11650481237659640387,
"detailed_name": "void Foo1()", "detailed_name": "template<> void Foo1<int>()",
"qual_name_offset": 5, "qual_name_offset": 16,
"short_name": "Foo1", "short_name": "Foo1",
"kind": 12, "kind": 12,
"storage": 0, "storage": 0,
@ -224,7 +224,7 @@ OUTPUT: impl.cc
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["4:3-4:7|0|1|16420"], "uses": ["4:3-4:7|5817708529036841195|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [], "usr2type": [],

View File

@ -47,7 +47,7 @@ OUTPUT: simple_impl.cc
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["4:3-4:9|16236105532929924676|3|16420"]
}, { }, {
"usr": 16236105532929924676, "usr": 16236105532929924676,
"detailed_name": "void header()", "detailed_name": "void header()",
@ -59,7 +59,7 @@ OUTPUT: simple_impl.cc
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["4:3-4:9|0|1|16420"], "uses": ["4:3-4:9|3373269392705484958|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [], "usr2type": [],

View File

@ -12,7 +12,7 @@ OUTPUT: static.h
"detailed_name": "static void Buffer::CreateSharedBuffer()", "detailed_name": "static void Buffer::CreateSharedBuffer()",
"qual_name_offset": 12, "qual_name_offset": 12,
"short_name": "CreateSharedBuffer", "short_name": "CreateSharedBuffer",
"kind": 6, "kind": 254,
"storage": 0, "storage": 0,
"declarations": ["4:15-4:33|9411323049603567600|2|1025"], "declarations": ["4:15-4:33|9411323049603567600|2|1025"],
"bases": [], "bases": [],
@ -53,11 +53,11 @@ OUTPUT: static.cc
"detailed_name": "void Buffer::CreateSharedBuffer()", "detailed_name": "void Buffer::CreateSharedBuffer()",
"qual_name_offset": 5, "qual_name_offset": 5,
"short_name": "CreateSharedBuffer", "short_name": "CreateSharedBuffer",
"kind": 6, "kind": 254,
"storage": 0, "storage": 0,
"declarations": [], "declarations": [],
"spell": "3:14-3:32|9411323049603567600|2|1026", "spell": "3:14-3:32|9411323049603567600|2|1026",
"extent": "3:1-3:37|0|1|0", "extent": "3:1-3:37|9411323049603567600|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],

View File

@ -20,7 +20,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["3:8-3:11|4508214972876735896|2|1025"], "declarations": ["3:8-3:11|4508214972876735896|2|1025"],
"spell": "6:11-6:14|4508214972876735896|2|1026", "spell": "6:11-6:14|4508214972876735896|2|1026",
"extent": "6:1-6:19|2029211996748007610|2|0", "extent": "6:1-6:19|4508214972876735896|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],

View File

@ -63,7 +63,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["9:17-9:20|0|1|4", "12:11-12:14|0|1|4"] "uses": ["9:17-9:20|0|1|4", "12:11-12:14|10818727483146447186|3|4"]
}, { }, {
"usr": 11879713791858506216, "usr": 11879713791858506216,
"detailed_name": "namespace fbz = foo::bar::baz", "detailed_name": "namespace fbz = foo::bar::baz",
@ -78,7 +78,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["13:11-13:14|0|1|4"] "uses": ["13:11-13:14|10818727483146447186|3|4"]
}, { }, {
"usr": 14450849931009540802, "usr": 14450849931009540802,
"detailed_name": "namespace foo::bar::baz {\n}", "detailed_name": "namespace foo::bar::baz {\n}",
@ -96,7 +96,7 @@ OUTPUT:
"R": -1 "R": -1
}], }],
"instances": [], "instances": [],
"uses": ["9:27-9:30|17805385787823406700|2|4", "12:21-12:24|17805385787823406700|2|4"] "uses": ["9:27-9:30|0|1|4", "12:21-12:24|10818727483146447186|3|4"]
}, { }, {
"usr": 17805385787823406700, "usr": 17805385787823406700,
"detailed_name": "namespace foo::bar {\n}", "detailed_name": "namespace foo::bar {\n}",
@ -111,7 +111,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["9:22-9:25|926793467007732869|2|4", "12:16-12:19|926793467007732869|2|4"] "uses": ["9:22-9:25|0|1|4", "12:16-12:19|10818727483146447186|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 6030927277961448585, "usr": 6030927277961448585,
@ -149,7 +149,7 @@ OUTPUT:
"spell": "4:18-4:21|14450849931009540802|2|1026", "spell": "4:18-4:21|14450849931009540802|2|1026",
"extent": "4:14-4:26|14450849931009540802|2|0", "extent": "4:14-4:26|14450849931009540802|2|0",
"type": 53, "type": 53,
"uses": ["12:26-12:29|14450849931009540802|2|12", "13:16-13:19|14450849931009540802|2|12"], "uses": ["12:26-12:29|10818727483146447186|3|12", "13:16-13:19|10818727483146447186|3|12"],
"kind": 13, "kind": 13,
"storage": 0 "storage": 0
}] }]

View File

@ -28,7 +28,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["7:7-7:13|17328473273923617489|3|16420", "9:3-9:9|17328473273923617489|3|16420"]
}, { }, {
"usr": 17328473273923617489, "usr": 17328473273923617489,
"detailed_name": "void ns::Accept(int a)", "detailed_name": "void ns::Accept(int a)",
@ -42,7 +42,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [3649375698083002347], "vars": [3649375698083002347],
"uses": ["7:7-7:13|11072669167287398027|2|16420", "9:3-9:9|11072669167287398027|2|16420"], "uses": ["7:7-7:13|631910859630953711|3|16420", "9:3-9:9|631910859630953711|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -77,7 +77,7 @@ OUTPUT:
"R": -1 "R": -1
}], }],
"instances": [], "instances": [],
"uses": ["7:3-7:5|0|1|4", "7:14-7:16|0|1|4", "8:19-8:21|0|1|4"] "uses": ["7:3-7:5|631910859630953711|3|4", "7:14-7:16|631910859630953711|3|4", "8:19-8:21|631910859630953711|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 3649375698083002347, "usr": 3649375698083002347,
@ -100,7 +100,7 @@ OUTPUT:
"spell": "2:7-2:10|11072669167287398027|2|1026", "spell": "2:7-2:10|11072669167287398027|2|1026",
"extent": "2:3-2:10|11072669167287398027|2|0", "extent": "2:3-2:10|11072669167287398027|2|0",
"type": 53, "type": 53,
"uses": ["7:18-7:21|11072669167287398027|2|12", "9:10-9:13|11072669167287398027|2|12"], "uses": ["7:18-7:21|631910859630953711|3|12", "9:10-9:13|631910859630953711|3|12"],
"kind": 13, "kind": 13,
"storage": 0 "storage": 0
}] }]

View File

@ -16,7 +16,7 @@ OUTPUT: static_function_in_type.h
"detailed_name": "static void ns::Foo::Register(ns::Manager *)", "detailed_name": "static void ns::Foo::Register(ns::Manager *)",
"qual_name_offset": 12, "qual_name_offset": 12,
"short_name": "Register", "short_name": "Register",
"kind": 6, "kind": 254,
"storage": 0, "storage": 0,
"declarations": ["6:15-6:23|17262466801709381811|2|1025"], "declarations": ["6:15-6:23|17262466801709381811|2|1025"],
"bases": [], "bases": [],
@ -39,7 +39,7 @@ OUTPUT: static_function_in_type.h
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["6:24-6:31|11072669167287398027|2|4"] "uses": ["6:24-6:31|17262466801709381811|2|4"]
}, { }, {
"usr": 11072669167287398027, "usr": 11072669167287398027,
"detailed_name": "namespace ns {\n}", "detailed_name": "namespace ns {\n}",
@ -87,12 +87,12 @@ OUTPUT: static_function_in_type.cc
"detailed_name": "void Foo::Register(ns::Manager *m)", "detailed_name": "void Foo::Register(ns::Manager *m)",
"qual_name_offset": 5, "qual_name_offset": 5,
"short_name": "Register", "short_name": "Register",
"kind": 6, "kind": 254,
"storage": 0, "storage": 0,
"comments": "static", "comments": "static",
"declarations": [], "declarations": [],
"spell": "5:11-5:19|17262466801709381811|2|1026", "spell": "5:11-5:19|17262466801709381811|2|1026",
"extent": "5:1-6:2|11072669167287398027|2|0", "extent": "5:1-6:2|17262466801709381811|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [13569879755236306838], "vars": [13569879755236306838],

View File

@ -21,7 +21,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["5:8-5:11|15041163540773201510|2|1025"], "declarations": ["5:8-5:11|15041163540773201510|2|1025"],
"spell": "8:11-8:14|15041163540773201510|2|1026", "spell": "8:11-8:14|15041163540773201510|2|1026",
"extent": "8:1-8:36|0|1|0", "extent": "8:1-8:36|15041163540773201510|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
@ -42,7 +42,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["5:12-5:20|0|1|4", "8:15-8:23|0|1|4"] "uses": ["5:12-5:20|15041163540773201510|2|4", "8:15-8:23|0|1|4"]
}, { }, {
"usr": 15041163540773201510, "usr": 15041163540773201510,
"detailed_name": "struct Foo {}", "detailed_name": "struct Foo {}",

View File

@ -51,7 +51,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [4731849186641714451, 4731849186641714451], "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"] "uses": ["6:22-6:29|12688716854043726585|2|4", "6:44-6:51|12688716854043726585|2|4", "10:18-10:25|11072669167287398027|2|4"]
}, { }, {
"usr": 11072669167287398027, "usr": 11072669167287398027,
"detailed_name": "namespace ns {\n}", "detailed_name": "namespace ns {\n}",
@ -99,7 +99,7 @@ OUTPUT:
"hover": "static constexpr ns::VarType ns::Holder::static_var = (VarType)0x0", "hover": "static constexpr ns::VarType ns::Holder::static_var = (VarType)0x0",
"declarations": ["6:30-6:40|12688716854043726585|2|1025"], "declarations": ["6:30-6:40|12688716854043726585|2|1025"],
"spell": "10:37-10:47|12688716854043726585|2|1026", "spell": "10:37-10:47|12688716854043726585|2|1026",
"extent": "9:3-10:47|11072669167287398027|2|0", "extent": "9:3-10:47|12688716854043726585|2|0",
"type": 1532099849728741556, "type": 1532099849728741556,
"uses": ["13:26-13:36|11072669167287398027|2|12", "14:27-14:37|11072669167287398027|2|12"], "uses": ["13:26-13:36|11072669167287398027|2|12", "14:27-14:37|11072669167287398027|2|12"],
"kind": 13, "kind": 13,

View File

@ -21,7 +21,7 @@ OUTPUT:
"detailed_name": "static int ns::Foo::foo()", "detailed_name": "static int ns::Foo::foo()",
"qual_name_offset": 11, "qual_name_offset": 11,
"short_name": "foo", "short_name": "foo",
"kind": 6, "kind": 254,
"storage": 0, "storage": 0,
"declarations": [], "declarations": [],
"spell": "5:16-5:19|14042997404480181958|2|1026", "spell": "5:16-5:19|14042997404480181958|2|1026",
@ -29,7 +29,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["10:21-10:24|14042997404480181958|2|36", "11:22-11:25|14042997404480181958|2|36"], "uses": ["10:21-10:24|11072669167287398027|2|36", "11:22-11:25|11072669167287398027|2|36"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{

View File

@ -436,7 +436,7 @@ OUTPUT:
"spell": "36:3-36:8|9201299975592934124|2|1026", "spell": "36:3-36:8|9201299975592934124|2|1026",
"extent": "36:3-36:8|9201299975592934124|2|0", "extent": "36:3-36:8|9201299975592934124|2|0",
"type": 0, "type": 0,
"uses": ["43:20-43:25|9201299975592934124|2|4"], "uses": ["43:20-43:25|0|1|4"],
"kind": 22, "kind": 22,
"storage": 0 "storage": 0
}, { }, {

View File

@ -31,7 +31,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": [], "declarations": [],
"spell": "10:22-10:25|17649312483543982122|2|1026", "spell": "10:22-10:25|17649312483543982122|2|1026",
"extent": "9:1-10:30|0|1|0", "extent": "9:1-10:30|17649312483543982122|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
@ -46,7 +46,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["3:8-3:11|17107291254533526269|2|1025"], "declarations": ["3:8-3:11|17107291254533526269|2|1025"],
"spell": "7:19-7:22|17107291254533526269|2|1026", "spell": "7:19-7:22|17107291254533526269|2|1026",
"extent": "6:1-7:24|0|1|0", "extent": "6:1-7:24|17107291254533526269|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],

View File

@ -18,7 +18,7 @@ OUTPUT:
"detailed_name": "static int Foo::foo()", "detailed_name": "static int Foo::foo()",
"qual_name_offset": 11, "qual_name_offset": 11,
"short_name": "foo", "short_name": "foo",
"kind": 6, "kind": 254,
"storage": 0, "storage": 0,
"declarations": [], "declarations": [],
"spell": "3:14-3:17|10528472276654770367|2|1026", "spell": "3:14-3:17|10528472276654770367|2|1026",
@ -26,7 +26,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["8:19-8:22|10528472276654770367|2|36", "9:20-9:23|10528472276654770367|2|36"], "uses": ["8:19-8:22|0|1|36", "9:20-9:23|0|1|36"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{

View File

@ -19,7 +19,7 @@ OUTPUT:
"detailed_name": "static int Foo::foo()", "detailed_name": "static int Foo::foo()",
"qual_name_offset": 11, "qual_name_offset": 11,
"short_name": "foo", "short_name": "foo",
"kind": 6, "kind": 254,
"storage": 0, "storage": 0,
"declarations": [], "declarations": [],
"spell": "4:14-4:17|10528472276654770367|2|1026", "spell": "4:14-4:17|10528472276654770367|2|1026",
@ -27,7 +27,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["9:19-9:22|10528472276654770367|2|36", "10:20-10:23|10528472276654770367|2|36"], "uses": ["9:19-9:22|0|1|36", "10:20-10:23|0|1|36"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{

View File

@ -117,7 +117,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["9:9-9:14|10528472276654770367|2|4", "10:9-10:14|10528472276654770367|2|4"] "uses": ["9:9-9:14|0|1|4", "10:9-10:14|0|1|4"]
}, { }, {
"usr": 15961308565836244174, "usr": 15961308565836244174,
"detailed_name": "Inner", "detailed_name": "Inner",

View File

@ -66,7 +66,7 @@ OUTPUT:
"hover": "static constexpr int Foo::var = 3", "hover": "static constexpr int Foo::var = 3",
"declarations": ["3:24-3:27|10528472276654770367|2|1025"], "declarations": ["3:24-3:27|10528472276654770367|2|1025"],
"type": 53, "type": 53,
"uses": ["6:19-6:22|10528472276654770367|2|12", "7:20-7:23|10528472276654770367|2|12"], "uses": ["6:19-6:22|0|1|12", "7:20-7:23|0|1|12"],
"kind": 13, "kind": 13,
"storage": 2 "storage": 2
}, { }, {

View File

@ -95,7 +95,7 @@ OUTPUT:
"spell": "6:5-6:6|0|1|2", "spell": "6:5-6:6|0|1|2",
"extent": "6:1-6:6|0|1|0", "extent": "6:1-6:6|0|1|0",
"type": 8501689086387244262, "type": 8501689086387244262,
"uses": ["9:3-9:4|0|1|4"], "uses": ["9:3-9:4|13982179977217945200|3|4"],
"kind": 13, "kind": 13,
"storage": 0 "storage": 0
}, { }, {
@ -119,7 +119,7 @@ OUTPUT:
"spell": "2:7-2:8|8501689086387244262|2|1026", "spell": "2:7-2:8|8501689086387244262|2|1026",
"extent": "2:3-2:12|8501689086387244262|2|0", "extent": "2:3-2:12|8501689086387244262|2|0",
"type": 53, "type": 53,
"uses": ["9:5-9:6|8501689086387244262|2|20"], "uses": ["9:5-9:6|13982179977217945200|3|20"],
"kind": 8, "kind": 8,
"storage": 0 "storage": 0
}] }]

View File

@ -26,7 +26,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["8:3-8:9|0|1|16420"], "uses": ["8:3-8:9|3385168158331140247|3|16420"],
"callees": [] "callees": []
}, { }, {
"usr": 3385168158331140247, "usr": 3385168158331140247,
@ -37,12 +37,12 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["4:3-4:6|15041163540773201510|2|1025"], "declarations": ["4:3-4:6|15041163540773201510|2|1025"],
"spell": "7:6-7:9|15041163540773201510|2|1026", "spell": "7:6-7:9|15041163540773201510|2|1026",
"extent": "7:1-9:2|0|1|0", "extent": "7:1-9:2|15041163540773201510|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["8:3-8:9|468307235068920063|3|16420"]
}], }],
"usr2type": [{ "usr2type": [{
"usr": 15041163540773201510, "usr": 15041163540773201510,
@ -60,7 +60,7 @@ OUTPUT:
"funcs": [3385168158331140247], "funcs": [3385168158331140247],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["4:3-4:6|0|1|4", "7:1-7:4|0|1|4", "7:6-7:9|0|1|4"] "uses": ["4:3-4:6|15041163540773201510|2|4", "7:1-7:4|0|1|4", "7:6-7:9|15041163540773201510|2|4"]
}], }],
"usr2var": [] "usr2var": []
} }

View File

@ -22,7 +22,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["6:14-6:20|0|1|16420", "6:14-6:20|0|1|64|0"], "uses": ["6:14-6:20|11404881820527069090|3|16420", "6:14-6:20|0|1|64|0"],
"callees": [] "callees": []
}, { }, {
"usr": 11404881820527069090, "usr": 11404881820527069090,
@ -38,7 +38,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["6:14-6:20|3787803219955606747|3|16420"]
}], }],
"usr2type": [], "usr2type": [],
"usr2var": [{ "usr2var": [{

View File

@ -27,8 +27,21 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["5:3-5:9|0|1|16420"], "uses": ["5:3-5:9|10177235824697315808|3|16420", "5:3-5:9|2459767597003442547|3|16420"],
"callees": [] "callees": []
}, {
"usr": 2459767597003442547,
"detailed_name": "",
"qual_name_offset": 0,
"short_name": "",
"kind": 0,
"storage": 0,
"declarations": [],
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": ["5:3-5:9|468307235068920063|3|16420"]
}, { }, {
"usr": 4259594751088586730, "usr": 4259594751088586730,
"detailed_name": "void foo()", "detailed_name": "void foo()",
@ -43,7 +56,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["9:3-9:9|10177235824697315808|3|16420"]
}, { }, {
"usr": 10177235824697315808, "usr": 10177235824697315808,
"detailed_name": "void caller()", "detailed_name": "void caller()",
@ -57,8 +70,8 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["9:3-9:9|0|1|16420"], "uses": ["9:3-9:9|4259594751088586730|3|16420"],
"callees": [] "callees": ["5:3-5:9|468307235068920063|3|16420"]
}], }],
"usr2type": [], "usr2type": [],
"usr2var": [] "usr2var": []

View File

@ -26,7 +26,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["8:10-8:16|0|1|16420"], "uses": ["8:10-8:16|11404881820527069090|3|16420"],
"callees": [] "callees": []
}, { }, {
"usr": 10544127002917214589, "usr": 10544127002917214589,
@ -39,7 +39,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["8:10-8:16|13611487872560323389|2|16676"], "uses": ["8:10-8:16|11404881820527069090|3|16676"],
"callees": [] "callees": []
}, { }, {
"usr": 11404881820527069090, "usr": 11404881820527069090,
@ -55,7 +55,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["8:10-8:16|10544127002917214589|3|16676", "8:10-8:16|468307235068920063|3|16420"]
}], }],
"usr2type": [{ "usr2type": [{
"usr": 13611487872560323389, "usr": 13611487872560323389,
@ -73,7 +73,7 @@ OUTPUT:
"funcs": [10544127002917214589], "funcs": [10544127002917214589],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["2:3-2:10|0|1|4", "7:1-7:8|0|1|4"] "uses": ["2:3-2:10|13611487872560323389|2|4", "7:1-7:8|0|1|4"]
}], }],
"usr2var": [] "usr2var": []
} }

View File

@ -25,7 +25,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["6:18-6:22|0|1|132", "7:12-7:16|0|1|132"], "uses": ["6:18-6:22|9376923949268137283|3|132", "7:12-7:16|9376923949268137283|3|132"],
"callees": [] "callees": []
}, { }, {
"usr": 9376923949268137283, "usr": 9376923949268137283,
@ -41,7 +41,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [16088407831770615719], "vars": [16088407831770615719],
"uses": [], "uses": [],
"callees": [] "callees": ["6:18-6:22|5264867802674151787|3|132", "6:18-6:22|5264867802674151787|3|132", "7:3-7:10|12924914488846929470|3|16420", "7:12-7:16|5264867802674151787|3|132"]
}, { }, {
"usr": 12924914488846929470, "usr": 12924914488846929470,
"detailed_name": "void consume(void (*)())", "detailed_name": "void consume(void (*)())",
@ -55,7 +55,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["7:3-7:10|0|1|16420"], "uses": ["7:3-7:10|9376923949268137283|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [], "usr2type": [],

View File

@ -26,7 +26,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [4636142131003982569], "vars": [4636142131003982569],
"uses": [], "uses": [],
"callees": [] "callees": ["6:18-6:22|18417145003926999463|3|132", "6:18-6:22|18417145003926999463|3|132"]
}, { }, {
"usr": 18417145003926999463, "usr": 18417145003926999463,
"detailed_name": "void Foo::Used()", "detailed_name": "void Foo::Used()",
@ -38,7 +38,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["6:18-6:22|15041163540773201510|2|132"], "uses": ["6:18-6:22|9376923949268137283|3|132"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -57,7 +57,7 @@ OUTPUT:
"funcs": [18417145003926999463], "funcs": [18417145003926999463],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["6:13-6:16|0|1|4"] "uses": ["6:13-6:16|9376923949268137283|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 4636142131003982569, "usr": 4636142131003982569,

View File

@ -21,7 +21,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["3:3-3:9|0|1|16420"], "uses": ["3:3-3:9|11404881820527069090|3|16420"],
"callees": [] "callees": []
}, { }, {
"usr": 11404881820527069090, "usr": 11404881820527069090,
@ -37,7 +37,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["3:3-3:9|468307235068920063|3|16420"]
}], }],
"usr2type": [], "usr2type": [],
"usr2var": [] "usr2var": []

View File

@ -26,7 +26,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [14045150712868309451], "vars": [14045150712868309451],
"uses": [], "uses": [],
"callees": [] "callees": ["7:6-7:10|18417145003926999463|3|16420"]
}, { }, {
"usr": 18417145003926999463, "usr": 18417145003926999463,
"detailed_name": "void Foo::Used()", "detailed_name": "void Foo::Used()",
@ -38,7 +38,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["7:6-7:10|15041163540773201510|2|16420"], "uses": ["7:6-7:10|9376923949268137283|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -57,7 +57,7 @@ OUTPUT:
"funcs": [18417145003926999463], "funcs": [18417145003926999463],
"vars": [], "vars": [],
"instances": [14045150712868309451], "instances": [14045150712868309451],
"uses": ["6:3-6:6|0|1|4"] "uses": ["6:3-6:6|9376923949268137283|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 14045150712868309451, "usr": 14045150712868309451,

View File

@ -24,7 +24,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["6:11-6:17|0|1|36"], "uses": ["6:11-6:17|15041163540773201510|2|36"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{

View File

@ -19,7 +19,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["4:3-4:6|0|1|16420"], "uses": ["4:3-4:6|6767773193109753523|3|16420"],
"callees": [] "callees": []
}, { }, {
"usr": 6767773193109753523, "usr": 6767773193109753523,
@ -35,7 +35,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["4:3-4:6|4259594751088586730|3|16420"]
}], }],
"usr2type": [], "usr2type": [],
"usr2var": [] "usr2var": []

View File

@ -25,7 +25,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [16229832321010999607], "vars": [16229832321010999607],
"uses": [], "uses": [],
"callees": [] "callees": ["7:6-7:9|17922201480358737771|3|16420"]
}, { }, {
"usr": 17922201480358737771, "usr": 17922201480358737771,
"detailed_name": "void Foo::foo()", "detailed_name": "void Foo::foo()",
@ -37,7 +37,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["7:6-7:9|15041163540773201510|2|16420"], "uses": ["7:6-7:9|6767773193109753523|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -56,7 +56,7 @@ OUTPUT:
"funcs": [17922201480358737771], "funcs": [17922201480358737771],
"vars": [], "vars": [],
"instances": [16229832321010999607], "instances": [16229832321010999607],
"uses": ["6:3-6:6|0|1|4"] "uses": ["6:3-6:6|6767773193109753523|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 16229832321010999607, "usr": 16229832321010999607,

View File

@ -25,7 +25,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["5:3-5:9|10585861037135727329|3|16420", "6:3-6:9|10585861037135727329|3|16420"]
}, { }, {
"usr": 10585861037135727329, "usr": 10585861037135727329,
"detailed_name": "void accept(T)", "detailed_name": "void accept(T)",
@ -37,7 +37,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["5:3-5:9|0|1|16420", "6:3-6:9|0|1|16420"], "uses": ["5:3-5:9|4259594751088586730|3|16420", "6:3-6:9|4259594751088586730|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [], "usr2type": [],

View File

@ -47,7 +47,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"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"] "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|16359708726068806331|3|4"]
}, { }, {
"usr": 4186953406371619898, "usr": 4186953406371619898,
"detailed_name": "unique_ptr", "detailed_name": "unique_ptr",
@ -81,7 +81,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["7:19-7:20|0|1|4", "9:12-9:13|0|1|4", "10:14-10:15|0|1|4"] "uses": ["7:19-7:20|0|1|4", "9:12-9:13|0|1|4", "10:14-10:15|16359708726068806331|3|4"]
}, { }, {
"usr": 16848604152578034754, "usr": 16848604152578034754,
"detailed_name": "unique_ptr", "detailed_name": "unique_ptr",

View File

@ -122,7 +122,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["65:23-65:26|15041163540773201510|2|1025"], "declarations": ["65:23-65:26|15041163540773201510|2|1025"],
"spell": "79:26-79:29|15041163540773201510|2|1026", "spell": "79:26-79:29|15041163540773201510|2|1026",
"extent": "79:1-79:51|0|1|0", "extent": "79:1-79:51|15041163540773201510|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
@ -158,7 +158,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"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"] "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|18320186404467436976|3|4", "65:14-65:16|15041163540773201510|2|4", "79:12-79:14|0|1|4"]
}, { }, {
"usr": 7147635971744144194, "usr": 7147635971744144194,
"detailed_name": "template<> class unique_ptr<S1, S2>", "detailed_name": "template<> class unique_ptr<S1, S2>",
@ -173,7 +173,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["15:19-15:29|0|1|4", "33:12-33:22|0|1|4", "33:52-33:62|0|1|4", "54:14-54:24|0|1|4", "65:3-65:13|0|1|4", "79:1-79:11|0|1|4"] "uses": ["15:19-15:29|0|1|4", "33:12-33:22|0|1|4", "33:52-33:62|0|1|4", "54:14-54:24|18320186404467436976|3|4", "65:3-65:13|15041163540773201510|2|4", "79:1-79:11|0|1|4"]
}, { }, {
"usr": 12728490517004312484, "usr": 12728490517004312484,
"detailed_name": "struct S2", "detailed_name": "struct S2",
@ -188,7 +188,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"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"] "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|18320186404467436976|3|4", "54:34-54:36|18320186404467436976|3|4", "65:18-65:20|15041163540773201510|2|4", "79:16-79:18|0|1|4"]
}, { }, {
"usr": 14209198335088845323, "usr": 14209198335088845323,
"detailed_name": "class unique_ptr", "detailed_name": "class unique_ptr",
@ -237,7 +237,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [2933643612409209903, 500112618220246], "instances": [2933643612409209903, 500112618220246],
"uses": ["15:8-15:18|0|1|4", "33:1-33:11|0|1|4", "54:3-54:13|0|1|4"] "uses": ["15:8-15:18|0|1|4", "33:1-33:11|0|1|4", "54:3-54:13|18320186404467436976|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 500112618220246, "usr": 500112618220246,

View File

@ -28,7 +28,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [14727441168849658842], "instances": [14727441168849658842],
"uses": ["6:3-6:18|0|1|4"] "uses": ["6:3-6:18|15041163540773201510|2|4"]
}, { }, {
"usr": 13749354388332789217, "usr": 13749354388332789217,
"detailed_name": "struct ForwardType", "detailed_name": "struct ForwardType",
@ -43,7 +43,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [14314859014962085433], "instances": [14314859014962085433],
"uses": ["5:3-5:14|0|1|4"] "uses": ["5:3-5:14|15041163540773201510|2|4"]
}, { }, {
"usr": 15041163540773201510, "usr": 15041163540773201510,
"detailed_name": "struct Foo {}", "detailed_name": "struct Foo {}",

View File

@ -43,7 +43,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [2580122838476012357], "instances": [2580122838476012357],
"uses": ["6:3-6:18|0|1|4"] "uses": ["6:3-6:18|4654328188330986029|3|4"]
}, { }, {
"usr": 13749354388332789217, "usr": 13749354388332789217,
"detailed_name": "struct ForwardType", "detailed_name": "struct ForwardType",
@ -58,7 +58,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [16374832544037266261], "instances": [16374832544037266261],
"uses": ["5:3-5:14|0|1|4"] "uses": ["5:3-5:14|4654328188330986029|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 2580122838476012357, "usr": 2580122838476012357,

View File

@ -43,7 +43,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [7997456978847868736, 17228576662112939520, 15429032129697337561, 6081981442495435784, 5004072032239834773, 14939253431683105646], "instances": [7997456978847868736, 17228576662112939520, 15429032129697337561, 6081981442495435784, 5004072032239834773, 14939253431683105646],
"uses": ["3:10-3:14|0|1|4", "3:26-3:30|0|1|4", "4:3-4:7|0|1|4", "5:3-5:7|0|1|4", "6:9-6:13|0|1|4", "7:9-7:13|0|1|4"] "uses": ["3:10-3:14|0|1|4", "3:26-3:30|0|1|4", "4:3-4:7|16858540520096802573|3|4", "5:3-5:7|16858540520096802573|3|4", "6:9-6:13|16858540520096802573|3|4", "7:9-7:13|16858540520096802573|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 5004072032239834773, "usr": 5004072032239834773,

View File

@ -31,7 +31,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["9:8-9:13|15041163540773201510|2|1025"], "declarations": ["9:8-9:13|15041163540773201510|2|1025"],
"spell": "13:11-13:16|15041163540773201510|2|1026", "spell": "13:11-13:16|15041163540773201510|2|1026",
"extent": "13:1-13:21|0|1|0", "extent": "13:1-13:21|15041163540773201510|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
@ -74,7 +74,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["8:9-8:12|15041163540773201510|2|1025"], "declarations": ["8:9-8:12|15041163540773201510|2|1025"],
"spell": "12:12-12:15|15041163540773201510|2|1026", "spell": "12:12-12:15|15041163540773201510|2|1026",
"extent": "12:1-12:40|0|1|0", "extent": "12:1-12:40|15041163540773201510|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
@ -110,7 +110,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"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"] "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|15041163540773201510|2|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, "usr": 15041163540773201510,
"detailed_name": "class Foo {}", "detailed_name": "class Foo {}",

View File

@ -23,7 +23,7 @@ OUTPUT:
"storage": 0, "storage": 0,
"declarations": ["2:8-2:12|15041163540773201510|2|1025"], "declarations": ["2:8-2:12|15041163540773201510|2|1025"],
"spell": "5:11-5:15|15041163540773201510|2|1026", "spell": "5:11-5:15|15041163540773201510|2|1026",
"extent": "5:1-8:2|0|1|0", "extent": "5:1-8:2|15041163540773201510|2|0",
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [16380484338511689669], "vars": [16380484338511689669],
@ -46,7 +46,7 @@ OUTPUT:
"funcs": [9488177941273031343], "funcs": [9488177941273031343],
"vars": [], "vars": [],
"instances": [16380484338511689669, 14455976355866885943], "instances": [16380484338511689669, 14455976355866885943],
"uses": ["2:3-2:6|0|1|4", "5:1-5:4|0|1|4", "5:6-5:9|0|1|4", "6:3-6:6|0|1|4", "10:8-10:11|0|1|4"] "uses": ["2:3-2:6|15041163540773201510|2|4", "5:1-5:4|0|1|4", "5:6-5:9|0|1|4", "6:3-6:6|9488177941273031343|3|4", "10:8-10:11|0|1|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 14455976355866885943, "usr": 14455976355866885943,

View File

@ -33,7 +33,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [8039186520399841081], "vars": [8039186520399841081],
"uses": [], "uses": [],
"callees": [] "callees": ["14:3-14:9|18319417758892371313|3|16420", "14:14-14:17|11404602816585117695|3|16420"]
}, { }, {
"usr": 11404602816585117695, "usr": 11404602816585117695,
"detailed_name": "int gen()", "detailed_name": "int gen()",
@ -45,7 +45,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["14:14-14:17|0|1|16420"], "uses": ["14:14-14:17|4259594751088586730|3|16420"],
"callees": [] "callees": []
}, { }, {
"usr": 18319417758892371313, "usr": 18319417758892371313,
@ -58,7 +58,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["14:3-14:9|0|1|16420"], "uses": ["14:3-14:9|4259594751088586730|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -95,7 +95,7 @@ OUTPUT:
"R": 0 "R": 0
}], }],
"instances": [], "instances": [],
"uses": ["10:5-10:8|0|1|4", "14:22-14:25|0|1|4", "14:40-14:43|0|1|4"] "uses": ["10:5-10:8|0|1|4", "14:22-14:25|4259594751088586730|3|4", "14:40-14:43|4259594751088586730|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 8039186520399841081, "usr": 8039186520399841081,
@ -119,7 +119,7 @@ OUTPUT:
"spell": "7:7-7:16|15041163540773201510|2|1026", "spell": "7:7-7:16|15041163540773201510|2|1026",
"extent": "7:3-7:16|15041163540773201510|2|0", "extent": "7:3-7:16|15041163540773201510|2|0",
"type": 53, "type": 53,
"uses": ["14:28-14:37|15041163540773201510|2|12"], "uses": ["14:28-14:37|4259594751088586730|3|12"],
"kind": 8, "kind": 8,
"storage": 0 "storage": 0
}, { }, {
@ -129,9 +129,9 @@ OUTPUT:
"short_name": "static_var", "short_name": "static_var",
"declarations": ["6:14-6:24|15041163540773201510|2|1025"], "declarations": ["6:14-6:24|15041163540773201510|2|1025"],
"spell": "10:10-10:20|15041163540773201510|2|1026", "spell": "10:10-10:20|15041163540773201510|2|1026",
"extent": "10:1-10:24|0|1|0", "extent": "10:1-10:24|15041163540773201510|2|0",
"type": 53, "type": 53,
"uses": ["14:45-14:55|0|1|12"], "uses": ["14:45-14:55|4259594751088586730|3|12"],
"kind": 13, "kind": 13,
"storage": 2 "storage": 2
}] }]

View File

@ -25,7 +25,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["6:3-6:9|18319417758892371313|3|16420", "6:10-6:13|11404602816585117695|3|16420", "6:18-6:21|11404602816585117695|3|16420"]
}, { }, {
"usr": 11404602816585117695, "usr": 11404602816585117695,
"detailed_name": "int gen()", "detailed_name": "int gen()",
@ -39,7 +39,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["6:10-6:13|0|1|16420", "6:18-6:21|0|1|16420"], "uses": ["6:10-6:13|4259594751088586730|3|16420", "6:18-6:21|4259594751088586730|3|16420"],
"callees": [] "callees": []
}, { }, {
"usr": 18319417758892371313, "usr": 18319417758892371313,
@ -52,7 +52,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["6:3-6:9|0|1|16420"], "uses": ["6:3-6:9|4259594751088586730|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [], "usr2type": [],

View File

@ -25,7 +25,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["4:13-4:19|0|1|132", "7:3-7:9|0|1|16420"], "uses": ["4:13-4:19|11404881820527069090|3|132", "7:3-7:9|11404881820527069090|3|16420"],
"callees": [] "callees": []
}, { }, {
"usr": 11404881820527069090, "usr": 11404881820527069090,
@ -41,7 +41,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [9121974011454213596], "vars": [9121974011454213596],
"uses": [], "uses": [],
"callees": [] "callees": ["4:13-4:19|468307235068920063|3|132", "4:13-4:19|468307235068920063|3|132", "7:3-7:9|468307235068920063|3|16420"]
}], }],
"usr2type": [], "usr2type": [],
"usr2var": [{ "usr2var": [{

View File

@ -36,7 +36,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [14669930844300034456], "vars": [14669930844300034456],
"uses": [], "uses": [],
"callees": [] "callees": ["14:3-14:9|17175780305784503374|3|16420", "15:3-15:9|17175780305784503374|3|16420", "16:3-16:9|12086644540399881766|3|16420", "17:3-17:9|17175780305784503374|3|16420"]
}, { }, {
"usr": 12086644540399881766, "usr": 12086644540399881766,
"detailed_name": "void accept(int *)", "detailed_name": "void accept(int *)",
@ -48,7 +48,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["16:3-16:9|0|1|16420"], "uses": ["16:3-16:9|4259594751088586730|3|16420"],
"callees": [] "callees": []
}, { }, {
"usr": 17175780305784503374, "usr": 17175780305784503374,
@ -61,7 +61,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["14:3-14:9|0|1|16420", "15:3-15:9|0|1|16420", "17:3-17:9|0|1|16420"], "uses": ["14:3-14:9|4259594751088586730|3|16420", "15:3-15:9|4259594751088586730|3|16420", "17:3-17:9|4259594751088586730|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -101,7 +101,7 @@ OUTPUT:
"R": 32 "R": 32
}], }],
"instances": [14669930844300034456], "instances": [14669930844300034456],
"uses": ["11:3-11:6|0|1|4"] "uses": ["11:3-11:6|4259594751088586730|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 3873837747174060388, "usr": 3873837747174060388,
@ -112,7 +112,7 @@ OUTPUT:
"spell": "4:7-4:8|15041163540773201510|2|1026", "spell": "4:7-4:8|15041163540773201510|2|1026",
"extent": "4:3-4:8|15041163540773201510|2|0", "extent": "4:3-4:8|15041163540773201510|2|0",
"type": 53, "type": 53,
"uses": ["17:12-17:13|15041163540773201510|2|12"], "uses": ["17:12-17:13|4259594751088586730|3|12"],
"kind": 8, "kind": 8,
"storage": 0 "storage": 0
}, { }, {
@ -124,7 +124,7 @@ OUTPUT:
"spell": "3:7-3:8|15041163540773201510|2|1026", "spell": "3:7-3:8|15041163540773201510|2|1026",
"extent": "3:3-3:8|15041163540773201510|2|0", "extent": "3:3-3:8|15041163540773201510|2|0",
"type": 53, "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"], "uses": ["12:5-12:6|4259594751088586730|3|20", "13:5-13:6|4259594751088586730|3|4", "14:12-14:13|4259594751088586730|3|12", "15:12-15:13|4259594751088586730|3|12", "16:13-16:14|4259594751088586730|3|132"],
"kind": 8, "kind": 8,
"storage": 0 "storage": 0
}, { }, {

View File

@ -27,7 +27,7 @@ OUTPUT:
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": [], "uses": [],
"callees": [] "callees": ["8:3-8:9|17175780305784503374|3|16420"]
}, { }, {
"usr": 17175780305784503374, "usr": 17175780305784503374,
"detailed_name": "void accept(int)", "detailed_name": "void accept(int)",
@ -39,7 +39,7 @@ OUTPUT:
"bases": [], "bases": [],
"derived": [], "derived": [],
"vars": [], "vars": [],
"uses": ["8:3-8:9|0|1|16420"], "uses": ["8:3-8:9|4259594751088586730|3|16420"],
"callees": [] "callees": []
}], }],
"usr2type": [{ "usr2type": [{
@ -73,7 +73,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [], "instances": [],
"uses": ["8:10-8:13|0|1|4"] "uses": ["8:10-8:13|4259594751088586730|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 8599782646965457351, "usr": 8599782646965457351,
@ -82,7 +82,7 @@ OUTPUT:
"short_name": "x", "short_name": "x",
"declarations": ["2:14-2:15|15041163540773201510|2|1025"], "declarations": ["2:14-2:15|15041163540773201510|2|1025"],
"type": 53, "type": 53,
"uses": ["8:15-8:16|15041163540773201510|2|12"], "uses": ["8:15-8:16|4259594751088586730|3|12"],
"kind": 13, "kind": 13,
"storage": 2 "storage": 2
}] }]

View File

@ -29,7 +29,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [7057400933868440116, 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"] "uses": ["4:20-4:27|10028537921178202800|2|4", "4:42-4:49|10028537921178202800|2|4", "7:7-7:14|0|1|4"]
}, { }, {
"usr": 10028537921178202800, "usr": 10028537921178202800,
"detailed_name": "struct Holder {}", "detailed_name": "struct Holder {}",
@ -56,7 +56,7 @@ OUTPUT:
"hover": "static constexpr VarType Holder::static_var = (VarType)0x0", "hover": "static constexpr VarType Holder::static_var = (VarType)0x0",
"declarations": ["4:28-4:38|10028537921178202800|2|1025"], "declarations": ["4:28-4:38|10028537921178202800|2|1025"],
"spell": "7:23-7:33|10028537921178202800|2|1026", "spell": "7:23-7:33|10028537921178202800|2|1026",
"extent": "7:1-7:33|0|1|0", "extent": "7:1-7:33|10028537921178202800|2|0",
"type": 5792006888140599735, "type": 5792006888140599735,
"uses": [], "uses": [],
"kind": 13, "kind": 13,

View File

@ -47,7 +47,7 @@ OUTPUT:
"short_name": "a", "short_name": "a",
"declarations": ["1:12-1:13|0|1|1"], "declarations": ["1:12-1:13|0|1|1"],
"type": 53, "type": 53,
"uses": ["4:3-4:4|0|1|20"], "uses": ["4:3-4:4|4259594751088586730|3|20"],
"kind": 13, "kind": 13,
"storage": 1 "storage": 1
}] }]

View File

@ -50,7 +50,7 @@ OUTPUT:
"spell": "1:12-1:13|0|1|2", "spell": "1:12-1:13|0|1|2",
"extent": "1:1-1:13|0|1|0", "extent": "1:1-1:13|0|1|0",
"type": 53, "type": 53,
"uses": ["4:3-4:4|0|1|20"], "uses": ["4:3-4:4|4259594751088586730|3|20"],
"kind": 13, "kind": 13,
"storage": 2 "storage": 2
}] }]

View File

@ -26,7 +26,7 @@ OUTPUT:
"R": 0 "R": 0
}], }],
"instances": [13799811842374292251], "instances": [13799811842374292251],
"uses": ["2:3-2:6|0|1|4"] "uses": ["2:3-2:6|15041163540773201510|2|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 13799811842374292251, "usr": 13799811842374292251,

View File

@ -25,7 +25,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [5844987037615239736, 5844987037615239736], "instances": [5844987037615239736, 5844987037615239736],
"uses": ["2:10-2:13|0|1|4", "4:1-4:4|0|1|4", "4:6-4:9|0|1|4"] "uses": ["2:10-2:13|15041163540773201510|2|4", "4:1-4:4|0|1|4", "4:6-4:9|0|1|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 5844987037615239736, "usr": 5844987037615239736,
@ -34,7 +34,7 @@ OUTPUT:
"short_name": "member", "short_name": "member",
"declarations": ["2:15-2:21|15041163540773201510|2|1025"], "declarations": ["2:15-2:21|15041163540773201510|2|1025"],
"spell": "4:11-4:17|15041163540773201510|2|1026", "spell": "4:11-4:17|15041163540773201510|2|1026",
"extent": "4:1-4:27|0|1|0", "extent": "4:1-4:27|15041163540773201510|2|0",
"type": 15041163540773201510, "type": 15041163540773201510,
"uses": [], "uses": [],
"kind": 13, "kind": 13,

View File

@ -41,7 +41,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [10601729374837386290, 18422884837902130475], "instances": [10601729374837386290, 18422884837902130475],
"uses": ["3:16-3:19|0|1|4", "4:17-4:20|0|1|4"] "uses": ["3:16-3:19|880549676430489861|3|4", "4:17-4:20|880549676430489861|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 10601729374837386290, "usr": 10601729374837386290,

View File

@ -39,7 +39,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [13198746475679542317], "instances": [13198746475679542317],
"uses": ["4:3-4:6|0|1|4"] "uses": ["4:3-4:6|4259594751088586730|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 13198746475679542317, "usr": 13198746475679542317,

View File

@ -60,7 +60,7 @@ OUTPUT:
"funcs": [], "funcs": [],
"vars": [], "vars": [],
"instances": [6975456769752895964], "instances": [6975456769752895964],
"uses": ["4:3-4:4|0|1|4"] "uses": ["4:3-4:4|4654328188330986029|3|4"]
}], }],
"usr2var": [{ "usr2var": [{
"usr": 6975456769752895964, "usr": 6975456769752895964,

View File

@ -492,6 +492,7 @@ public:
if (L.isMacroID() || !SM.isBeforeInTranslationUnit(L, R.getBegin())) if (L.isMacroID() || !SM.isBeforeInTranslationUnit(L, R.getBegin()))
return; return;
StringRef Buf = GetSourceInRange(SM, Lang, R); StringRef Buf = GetSourceInRange(SM, Lang, R);
Twine Static("static ");
Twine T = Buf.count('\n') <= kInitializerMaxLines - 1 Twine T = Buf.count('\n') <= kInitializerMaxLines - 1
? def.detailed_name + (Buf.size() && Buf[0] == ':' ? def.detailed_name + (Buf.size() && Buf[0] == ':'
? Twine(" ", Buf) ? Twine(" ", Buf)
@ -499,7 +500,7 @@ public:
: def.detailed_name; : def.detailed_name;
def.hover = def.hover =
def.storage == SC_Static && strncmp(def.detailed_name, "static ", 7) def.storage == SC_Static && strncmp(def.detailed_name, "static ", 7)
? Intern(("static " + T).str()) ? Intern((Static + T).str())
: Intern(T.str()); : Intern(T.str());
} }
} }
@ -591,7 +592,7 @@ public:
const Decl* OrigD = ASTNode.OrigD; const Decl* OrigD = ASTNode.OrigD;
const DeclContext *SemDC = OrigD->getDeclContext(); const DeclContext *SemDC = OrigD->getDeclContext();
const DeclContext *LexDC = OrigD->getLexicalDeclContext(); const DeclContext *LexDC = ASTNode.ContainerDC;
Role role = static_cast<Role>(Roles); Role role = static_cast<Role>(Roles);
db->language = std::max(db->language, GetDeclLanguage(OrigD)); db->language = std::max(db->language, GetDeclLanguage(OrigD));
@ -642,6 +643,11 @@ public:
const Decl *DC = cast<Decl>(SemDC); const Decl *DC = cast<Decl>(SemDC);
if (GetSymbolKind(DC) == SymbolKind::Type) if (GetSymbolKind(DC) == SymbolKind::Type)
db->ToType(GetUsr(DC)).def.funcs.push_back(usr); db->ToType(GetUsr(DC)).def.funcs.push_back(usr);
} else {
const Decl *DC = cast<Decl>(LexDC);
if (GetSymbolKind(DC) == SymbolKind::Func)
db->ToFunc(GetUsr(DC))
.def.callees.push_back({{loc, usr, SymbolKind::Func, role}});
} }
break; break;
case SymbolKind::Type: case SymbolKind::Type:
@ -863,8 +869,10 @@ public:
case Decl::Function: case Decl::Function:
func->def.kind = lsSymbolKind::Function; func->def.kind = lsSymbolKind::Function;
break; break;
case Decl::CXXMethod: case Decl::CXXMethod: {
func->def.kind = lsSymbolKind::Method; const auto *MD = cast<CXXMethodDecl>(D);
func->def.kind =
MD->isStatic() ? lsSymbolKind::StaticMethod : lsSymbolKind::Method;
if (is_def || is_decl) { if (is_def || is_decl) {
if (auto *ND = dyn_cast<NamedDecl>(D)) { if (auto *ND = dyn_cast<NamedDecl>(D)) {
SmallVector<const NamedDecl *, 8> OverDecls; SmallVector<const NamedDecl *, 8> OverDecls;
@ -877,6 +885,7 @@ public:
} }
} }
break; break;
}
case Decl::CXXConstructor: case Decl::CXXConstructor:
case Decl::CXXConversion: case Decl::CXXConversion:
func->def.kind = lsSymbolKind::Constructor; func->def.kind = lsSymbolKind::Constructor;

View File

@ -207,7 +207,7 @@ struct Handler_CclsMemberHierarchy
Out_CclsMemberHierarchy::Entry entry; Out_CclsMemberHierarchy::Entry entry;
// Not type, |id| is invalid. // Not type, |id| is invalid.
entry.name = std::string(def->Name(qualified)); entry.name = def->Name(qualified);
if (def->spell) { if (def->spell) {
if (std::optional<lsLocation> loc = if (std::optional<lsLocation> loc =
GetLsLocation(db, working_files, *def->spell)) GetLsLocation(db, working_files, *def->spell))