Skip to content

Commit

Permalink
Clean and update tests after Index* refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Oct 5, 2018
1 parent 8c21701 commit 77a6b89
Show file tree
Hide file tree
Showing 117 changed files with 3,134 additions and 3,021 deletions.
14 changes: 7 additions & 7 deletions index_tests/class_forward_declaration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ class Foo;
"detailed_name": "class Foo",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": ["1:7-1:10|1:1-1:10|0|1|1|-1", "2:7-2:10|2:1-2:10|0|1|1|-1", "4:7-4:10|4:1-4:10|0|1|1|-1"],
"spell": "3:7-3:10|0|1|2|-1",
"extent": "3:1-3:13|0|1|0|-1",
"alias_of": 0,
"spell": "3:7-3:10|3:1-3:13|2|-1",
"bases": [],
"derived": [],
"types": [],
"funcs": [],
"types": [],
"vars": [],
"alias_of": 0,
"kind": 5,
"parent_kind": 0,
"declarations": ["1:7-1:10|1:1-1:10|1|-1", "2:7-2:10|2:1-2:10|1|-1", "4:7-4:10|4:1-4:10|1|-1"],
"derived": [],
"instances": [],
"uses": []
}],
Expand Down
60 changes: 30 additions & 30 deletions index_tests/constructors/constructor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,75 +18,75 @@ void foo() {
"detailed_name": "Foo::Foo()",
"qual_name_offset": 0,
"short_name": "Foo",
"spell": "3:3-3:6|3:3-3:11|1026|-1",
"bases": [],
"vars": [],
"callees": [],
"kind": 9,
"parent_kind": 5,
"storage": 0,
"declarations": [],
"spell": "3:3-3:6|15041163540773201510|2|1026|-1",
"extent": "3:3-3:11|15041163540773201510|2|0|-1",
"bases": [],
"derived": [],
"vars": [],
"uses": ["7:7-7:8|4259594751088586730|3|16676|-1", "8:17-8:20|4259594751088586730|3|16676|-1"],
"callees": []
"uses": ["7:7-7:8|16676|-1", "8:17-8:20|16676|-1"]
}, {
"usr": 4259594751088586730,
"detailed_name": "void foo()",
"qual_name_offset": 5,
"short_name": "foo",
"spell": "6:6-6:9|6:1-9:2|2|-1",
"bases": [],
"vars": [10983126130596230582, 17165811951126099095],
"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"],
"kind": 12,
"parent_kind": 0,
"storage": 0,
"declarations": [],
"spell": "6:6-6:9|0|1|2|-1",
"extent": "6:1-9:2|0|1|0|-1",
"bases": [],
"derived": [],
"vars": [10983126130596230582, 17165811951126099095],
"uses": [],
"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"]
"uses": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
"spell": "1:7-1:10|0|1|2|-1",
"extent": "1:1-4:2|0|1|0|-1",
"alias_of": 0,
"spell": "1:7-1:10|1:1-4:2|2|-1",
"bases": [],
"derived": [],
"types": [],
"funcs": [3385168158331140247],
"types": [],
"vars": [],
"alias_of": 0,
"kind": 5,
"parent_kind": 0,
"declarations": [],
"derived": [],
"instances": [10983126130596230582, 17165811951126099095],
"uses": ["3:3-3:6|15041163540773201510|2|4|-1", "7:3-7:6|4259594751088586730|3|4|-1", "8:3-8:6|4259594751088586730|3|4|-1", "8:17-8:20|4259594751088586730|3|4|-1"]
"uses": ["3:3-3:6|4|-1", "7:3-7:6|4|-1", "8:3-8:6|4|-1", "8:17-8:20|4|-1"]
}],
"usr2var": [{
"usr": 10983126130596230582,
"detailed_name": "Foo f",
"qual_name_offset": 4,
"short_name": "f",
"declarations": [],
"spell": "7:7-7:8|4259594751088586730|3|2|-1",
"extent": "7:3-7:8|4259594751088586730|3|0|-1",
"spell": "7:7-7:8|7:3-7:8|2|-1",
"type": 15041163540773201510,
"uses": [],
"kind": 13,
"storage": 0
"parent_kind": 12,
"storage": 0,
"declarations": [],
"uses": []
}, {
"usr": 17165811951126099095,
"detailed_name": "Foo *f2",
"qual_name_offset": 5,
"short_name": "f2",
"hover": "Foo *f2 = new Foo()",
"declarations": [],
"spell": "8:8-8:10|4259594751088586730|3|2|-1",
"extent": "8:3-8:22|4259594751088586730|3|0|-1",
"spell": "8:8-8:10|8:3-8:22|2|-1",
"type": 15041163540773201510,
"uses": [],
"kind": 13,
"storage": 0
"parent_kind": 12,
"storage": 0,
"declarations": [],
"uses": []
}]
}
*/
62 changes: 31 additions & 31 deletions index_tests/constructors/destructor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,77 +23,77 @@ void foo() {
"detailed_name": "Foo::Foo()",
"qual_name_offset": 0,
"short_name": "Foo",
"spell": "3:3-3:6|3:3-3:11|1026|-1",
"bases": [],
"vars": [],
"callees": [],
"kind": 9,
"parent_kind": 5,
"storage": 0,
"declarations": [],
"spell": "3:3-3:6|15041163540773201510|2|1026|-1",
"extent": "3:3-3:11|15041163540773201510|2|0|-1",
"bases": [],
"derived": [],
"vars": [],
"uses": ["8:7-8:8|4259594751088586730|3|16676|-1"],
"callees": []
"uses": ["8:7-8:8|16676|-1"]
}, {
"usr": 4259594751088586730,
"detailed_name": "void foo()",
"qual_name_offset": 5,
"short_name": "foo",
"spell": "7:6-7:9|7:1-9:2|2|-1",
"bases": [],
"vars": [1893354193220338759],
"callees": ["8:7-8:8|3385168158331140247|3|16676", "8:7-8:8|3385168158331140247|3|16676"],
"kind": 12,
"parent_kind": 0,
"storage": 0,
"declarations": [],
"spell": "7:6-7:9|0|1|2|-1",
"extent": "7:1-9:2|0|1|0|-1",
"bases": [],
"derived": [],
"vars": [1893354193220338759],
"uses": [],
"callees": ["8:7-8:8|3385168158331140247|3|16676", "8:7-8:8|3385168158331140247|3|16676"]
"uses": []
}, {
"usr": 7440261702884428359,
"detailed_name": "Foo::~Foo() noexcept",
"qual_name_offset": 0,
"short_name": "~Foo",
"spell": "4:3-4:7|4:3-4:12|1026|-1",
"bases": [],
"vars": [],
"callees": [],
"kind": 6,
"parent_kind": 5,
"storage": 0,
"declarations": [],
"spell": "4:3-4:7|15041163540773201510|2|1026|-1",
"extent": "4:3-4:12|15041163540773201510|2|0|-1",
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": []
"uses": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "class Foo {}",
"qual_name_offset": 6,
"short_name": "Foo",
"kind": 5,
"declarations": [],
"spell": "1:7-1:10|0|1|2|-1",
"extent": "1:1-5:2|0|1|0|-1",
"alias_of": 0,
"spell": "1:7-1:10|1:1-5:2|2|-1",
"bases": [],
"derived": [],
"types": [],
"funcs": [3385168158331140247, 7440261702884428359],
"types": [],
"vars": [],
"alias_of": 0,
"kind": 5,
"parent_kind": 0,
"declarations": [],
"derived": [],
"instances": [1893354193220338759],
"uses": ["3:3-3:6|15041163540773201510|2|4|-1", "4:4-4:7|15041163540773201510|2|4|-1", "8:3-8:6|4259594751088586730|3|4|-1"]
"uses": ["3:3-3:6|4|-1", "4:4-4:7|4|-1", "8:3-8:6|4|-1"]
}],
"usr2var": [{
"usr": 1893354193220338759,
"detailed_name": "Foo f",
"qual_name_offset": 4,
"short_name": "f",
"declarations": [],
"spell": "8:7-8:8|4259594751088586730|3|2|-1",
"extent": "8:3-8:8|4259594751088586730|3|0|-1",
"spell": "8:7-8:8|8:3-8:8|2|-1",
"type": 15041163540773201510,
"uses": [],
"kind": 13,
"storage": 0
"parent_kind": 12,
"storage": 0,
"declarations": [],
"uses": []
}]
}
*/
60 changes: 30 additions & 30 deletions index_tests/constructors/implicit_constructor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,75 +17,75 @@ void Make() {
"detailed_name": "void Make()",
"qual_name_offset": 5,
"short_name": "Make",
"spell": "5:6-5:10|5:1-8:2|2|-1",
"bases": [],
"vars": [449111627548814328, 17097499197730163115],
"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"],
"kind": 12,
"parent_kind": 0,
"storage": 0,
"declarations": [],
"spell": "5:6-5:10|0|1|2|-1",
"extent": "5:1-8:2|0|1|0|-1",
"bases": [],
"derived": [],
"vars": [449111627548814328, 17097499197730163115],
"uses": [],
"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"]
"uses": []
}, {
"usr": 10530961286677896857,
"detailed_name": "Type::Type()",
"qual_name_offset": 0,
"short_name": "Type",
"spell": "2:3-2:7|2:3-2:12|1026|-1",
"bases": [],
"vars": [],
"callees": [],
"kind": 9,
"parent_kind": 23,
"storage": 0,
"declarations": [],
"spell": "2:3-2:7|13487927231218873822|2|1026|-1",
"extent": "2:3-2:12|13487927231218873822|2|0|-1",
"bases": [],
"derived": [],
"vars": [],
"uses": ["6:8-6:12|3957104924306079513|3|16676|-1", "7:15-7:19|3957104924306079513|3|16676|-1"],
"callees": []
"uses": ["6:8-6:12|16676|-1", "7:15-7:19|16676|-1"]
}],
"usr2type": [{
"usr": 13487927231218873822,
"detailed_name": "struct Type {}",
"qual_name_offset": 7,
"short_name": "Type",
"kind": 23,
"declarations": [],
"spell": "1:8-1:12|0|1|2|-1",
"extent": "1:1-3:2|0|1|0|-1",
"alias_of": 0,
"spell": "1:8-1:12|1:1-3:2|2|-1",
"bases": [],
"derived": [],
"types": [],
"funcs": [10530961286677896857],
"types": [],
"vars": [],
"alias_of": 0,
"kind": 23,
"parent_kind": 0,
"declarations": [],
"derived": [],
"instances": [449111627548814328, 17097499197730163115],
"uses": ["2:3-2:7|13487927231218873822|2|4|-1", "6:3-6:7|3957104924306079513|3|4|-1", "7:15-7:19|3957104924306079513|3|4|-1"]
"uses": ["2:3-2:7|4|-1", "6:3-6:7|4|-1", "7:15-7:19|4|-1"]
}],
"usr2var": [{
"usr": 449111627548814328,
"detailed_name": "Type foo0",
"qual_name_offset": 5,
"short_name": "foo0",
"declarations": [],
"spell": "6:8-6:12|3957104924306079513|3|2|-1",
"extent": "6:3-6:12|3957104924306079513|3|0|-1",
"spell": "6:8-6:12|6:3-6:12|2|-1",
"type": 13487927231218873822,
"uses": [],
"kind": 13,
"storage": 0
"parent_kind": 12,
"storage": 0,
"declarations": [],
"uses": []
}, {
"usr": 17097499197730163115,
"detailed_name": "Type foo1",
"qual_name_offset": 5,
"short_name": "foo1",
"hover": "Type foo1 = Type()",
"declarations": [],
"spell": "7:8-7:12|3957104924306079513|3|2|-1",
"extent": "7:3-7:21|3957104924306079513|3|0|-1",
"spell": "7:8-7:12|7:3-7:21|2|-1",
"type": 13487927231218873822,
"uses": [],
"kind": 13,
"storage": 0
"parent_kind": 12,
"storage": 0,
"declarations": [],
"uses": []
}]
}
*/
28 changes: 14 additions & 14 deletions index_tests/constructors/invalid_reference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,34 @@ Foo::Foo() {}
"detailed_name": "Foo::Foo::Foo()",
"qual_name_offset": 0,
"short_name": "Foo",
"spell": "4:6-4:9|4:1-4:11|1026|-1",
"bases": [],
"vars": [],
"callees": [],
"kind": 9,
"parent_kind": 23,
"storage": 0,
"declarations": [],
"spell": "4:6-4:9|15041163540773201510|2|1026|-1",
"extent": "4:1-4:11|15041163540773201510|2|0|-1",
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": []
"uses": []
}],
"usr2type": [{
"usr": 15041163540773201510,
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"kind": 23,
"declarations": [],
"spell": "1:8-1:11|0|1|2|-1",
"extent": "1:1-1:14|0|1|0|-1",
"alias_of": 0,
"spell": "1:8-1:11|1:1-1:14|2|-1",
"bases": [],
"derived": [],
"types": [],
"funcs": [17319723337446061757],
"types": [],
"vars": [],
"alias_of": 0,
"kind": 23,
"parent_kind": 0,
"declarations": [],
"derived": [],
"instances": [],
"uses": ["4:1-4:4|0|1|4|-1", "4:6-4:9|15041163540773201510|2|4|-1"]
"uses": ["4:1-4:4|4|-1", "4:6-4:9|4|-1"]
}],
"usr2var": []
}
Expand Down
Loading

0 comments on commit 77a6b89

Please sign in to comment.