mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Rename serialized output, update tests.
This commit is contained in:
parent
bb25640d91
commit
89e6b3cd43
@ -136,7 +136,7 @@ void Reflect(TVisitor& visitor, IndexedTypeDef& value) {
|
||||
REFLECT_MEMBER2("types", value.def.types);
|
||||
REFLECT_MEMBER2("funcs", value.def.funcs);
|
||||
REFLECT_MEMBER2("vars", value.def.vars);
|
||||
REFLECT_MEMBER2("instantiations", value.instances);
|
||||
REFLECT_MEMBER2("instances", value.instances);
|
||||
REFLECT_MEMBER2("uses", value.uses);
|
||||
REFLECT_MEMBER_END();
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:7-1:10",
|
||||
"definition_extent": "1:1-4:2",
|
||||
"funcs": [0],
|
||||
"instantiations": [0, 1],
|
||||
"instances": [0, 1],
|
||||
"uses": ["1:7-1:10", "3:3-3:6", "7:3-7:6", "8:3-8:6", "8:17-8:20"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -24,7 +24,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:7-1:10",
|
||||
"definition_extent": "1:1-5:2",
|
||||
"funcs": [0, 1],
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:7-1:10", "3:3-3:6", "4:3-4:7", "8:3-8:6"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -16,7 +16,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:12-1:15",
|
||||
"definition_extent": "1:1-4:2",
|
||||
"vars": [0, 1],
|
||||
"instantiations": [2],
|
||||
"instances": [2],
|
||||
"uses": ["1:12-1:15", "6:1-6:4", "6:9-6:12"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -34,7 +34,7 @@ OUTPUT:
|
||||
"detailed_name": "Foo",
|
||||
"definition_spelling": "5:8-5:11",
|
||||
"definition_extent": "5:1-7:2",
|
||||
"instantiations": [1],
|
||||
"instances": [1],
|
||||
"uses": ["5:8-5:11", "9:1-9:4", "10:1-10:4"]
|
||||
}, {
|
||||
"id": 3,
|
||||
@ -43,7 +43,7 @@ OUTPUT:
|
||||
"detailed_name": "Foo::Inner",
|
||||
"definition_spelling": "6:10-6:15",
|
||||
"definition_extent": "6:3-6:18",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["6:10-6:15", "9:9-9:14"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -22,7 +22,7 @@ OUTPUT:
|
||||
}, {
|
||||
"id": 1,
|
||||
"usr": "c:@N@std@ST>2#T#T@vector",
|
||||
"instantiations": [2],
|
||||
"instances": [2],
|
||||
"uses": ["6:8-6:14"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -27,12 +27,12 @@ OUTPUT:
|
||||
}, {
|
||||
"id": 1,
|
||||
"usr": "c:@N@std@T@string",
|
||||
"instantiations": [0, 1],
|
||||
"instances": [0, 1],
|
||||
"uses": ["7:8-7:14", "8:8-8:14", "9:20-9:26"]
|
||||
}, {
|
||||
"id": 2,
|
||||
"usr": "c:@N@std@ST>2#T#T@vector",
|
||||
"instantiations": [2],
|
||||
"instances": [2],
|
||||
"uses": ["9:8-9:14", "12:6-12:12"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -24,7 +24,7 @@ OUTPUT:
|
||||
"detailed_name": "ns::VarType",
|
||||
"definition_spelling": "2:8-2:15",
|
||||
"definition_extent": "2:3-2:18",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["2:8-2:15", "6:22-6:29", "6:44-6:51", "10:18-10:25"]
|
||||
}, {
|
||||
"id": 1,
|
||||
|
@ -16,7 +16,7 @@ OUTPUT:
|
||||
"detailed_name": "ns::Foo",
|
||||
"definition_spelling": "3:9-3:12",
|
||||
"definition_extent": "3:3-3:15",
|
||||
"instantiations": [0, 1],
|
||||
"instances": [0, 1],
|
||||
"uses": ["3:9-3:12", "5:3-5:6", "6:3-6:6"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -61,7 +61,7 @@ OUTPUT:
|
||||
"detailed_name": "Foo::Inner",
|
||||
"definition_spelling": "6:10-6:15",
|
||||
"definition_extent": "6:3-6:18",
|
||||
"instantiations": [0, 1],
|
||||
"instances": [0, 1],
|
||||
"uses": ["6:10-6:15", "9:9-9:14", "10:9-10:14"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -14,7 +14,7 @@ OUTPUT:
|
||||
"detailed_name": "Foo",
|
||||
"definition_spelling": "2:7-2:10",
|
||||
"definition_extent": "2:1-2:13",
|
||||
"instantiations": [0, 1],
|
||||
"instances": [0, 1],
|
||||
"uses": ["2:7-2:10", "4:1-4:4", "5:1-5:4"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -22,7 +22,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:7-1:10",
|
||||
"definition_extent": "1:1-4:2",
|
||||
"vars": [0, 1],
|
||||
"instantiations": [2],
|
||||
"instances": [2],
|
||||
"uses": ["1:7-1:10", "6:1-6:4", "8:10-8:13"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -18,7 +18,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:8-1:11",
|
||||
"definition_extent": "1:1-3:2",
|
||||
"funcs": [0],
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:8-1:11", "6:3-6:6"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -17,7 +17,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:8-1:11",
|
||||
"definition_extent": "1:1-3:2",
|
||||
"funcs": [0],
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:8-1:11", "6:3-6:6"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -16,7 +16,7 @@ OUTPUT:
|
||||
"types": [{
|
||||
"id": 0,
|
||||
"usr": "c:@ST>1#T@unique_ptr",
|
||||
"instantiations": [0, 1, 2],
|
||||
"instances": [0, 1, 2],
|
||||
"uses": ["2:7-2:17", "6:8-6:18", "7:8-7:18", "9:1-9:11", "10:3-10:13"]
|
||||
}, {
|
||||
"id": 1,
|
||||
|
@ -84,7 +84,7 @@ OUTPUT:
|
||||
"types": [{
|
||||
"id": 0,
|
||||
"usr": "c:@ST>2#T#T@unique_ptr",
|
||||
"instantiations": [0, 1],
|
||||
"instances": [0, 1],
|
||||
"uses": ["2:7-2:17", "15:8-15:18", "15:19-15:29", "33:1-33:11", "33:12-33:22", "33:52-33:62", "54:3-54:13", "54:14-54:24", "65:3-65:13", "79:1-79:11"]
|
||||
}, {
|
||||
"id": 1,
|
||||
|
@ -15,7 +15,7 @@ OUTPUT:
|
||||
"detailed_name": "unique_ptr",
|
||||
"definition_spelling": "2:7-2:17",
|
||||
"definition_extent": "2:1-2:20",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["2:7-2:17", "6:8-6:18"]
|
||||
}, {
|
||||
"id": 1,
|
||||
|
@ -11,7 +11,7 @@ OUTPUT:
|
||||
"detailed_name": "T",
|
||||
"definition_spelling": "1:8-1:9",
|
||||
"definition_extent": "1:1-1:12",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:8-1:9", "3:8-3:9"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -12,7 +12,7 @@ OUTPUT:
|
||||
"types": [{
|
||||
"id": 0,
|
||||
"usr": "c:@S@ForwardType",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:8-1:19", "5:3-5:14"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -21,7 +21,7 @@ OUTPUT:
|
||||
"detailed_name": "ImplementedType",
|
||||
"definition_spelling": "2:8-2:23",
|
||||
"definition_extent": "2:1-2:26",
|
||||
"instantiations": [1],
|
||||
"instances": [1],
|
||||
"uses": ["2:8-2:23", "6:3-6:18"]
|
||||
}, {
|
||||
"id": 2,
|
||||
|
@ -12,7 +12,7 @@ OUTPUT:
|
||||
"types": [{
|
||||
"id": 0,
|
||||
"usr": "c:@S@ForwardType",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:8-1:19", "5:3-5:14"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -21,7 +21,7 @@ OUTPUT:
|
||||
"detailed_name": "ImplementedType",
|
||||
"definition_spelling": "2:8-2:23",
|
||||
"definition_extent": "2:1-2:26",
|
||||
"instantiations": [1],
|
||||
"instances": [1],
|
||||
"uses": ["2:8-2:23", "6:3-6:18"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -9,7 +9,7 @@ OUTPUT:
|
||||
"types": [{
|
||||
"id": 0,
|
||||
"usr": "c:@S@ForwardType",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:8-1:19", "4:10-4:21"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -18,7 +18,7 @@ OUTPUT:
|
||||
"detailed_name": "ImplementedType",
|
||||
"definition_spelling": "2:8-2:23",
|
||||
"definition_extent": "2:1-2:26",
|
||||
"instantiations": [1],
|
||||
"instances": [1],
|
||||
"uses": ["2:8-2:23", "4:26-4:41"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -14,7 +14,7 @@ OUTPUT:
|
||||
"types": [{
|
||||
"id": 0,
|
||||
"usr": "c:@S@Foo",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:8-1:11", "3:10-3:13", "3:18-3:21", "4:10-4:13", "4:18-4:21"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -16,7 +16,7 @@ OUTPUT:
|
||||
"detailed_name": "Type",
|
||||
"definition_spelling": "1:8-1:12",
|
||||
"definition_extent": "1:1-1:15",
|
||||
"instantiations": [0, 1, 2, 3, 4, 5],
|
||||
"instances": [0, 1, 2, 3, 4, 5],
|
||||
"uses": ["1:8-1:12", "3:10-3:14", "3:26-3:30", "4:3-4:7", "5:3-5:7", "6:9-6:13", "7:9-7:13"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -6,7 +6,7 @@ OUTPUT:
|
||||
"types": [{
|
||||
"id": 0,
|
||||
"usr": "c:@S@Type",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:8-1:12", "2:8-2:12"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -20,7 +20,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:7-1:10",
|
||||
"definition_extent": "1:1-3:2",
|
||||
"funcs": [0],
|
||||
"instantiations": [0, 1],
|
||||
"instances": [0, 1],
|
||||
"uses": ["1:7-1:10", "2:3-2:6", "5:1-5:4", "5:6-5:9", "6:3-6:6", "10:8-10:11"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -28,7 +28,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:7-1:10",
|
||||
"definition_extent": "1:1-5:2",
|
||||
"vars": [0, 1],
|
||||
"instantiations": [2],
|
||||
"instances": [2],
|
||||
"uses": ["1:7-1:10", "11:3-11:6"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -17,7 +17,7 @@ OUTPUT:
|
||||
"detailed_name": "VarType",
|
||||
"definition_spelling": "1:6-1:13",
|
||||
"definition_extent": "1:1-1:16",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:6-1:13", "4:20-4:27", "4:42-4:49", "7:7-7:14"]
|
||||
}, {
|
||||
"id": 1,
|
||||
|
@ -12,7 +12,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:7-1:10",
|
||||
"definition_extent": "1:1-3:2",
|
||||
"vars": [0],
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:7-1:10", "2:3-2:6"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -14,7 +14,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:7-1:10",
|
||||
"definition_extent": "1:1-3:2",
|
||||
"vars": [0],
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:7-1:10", "2:10-2:13", "4:1-4:4", "4:6-4:9"]
|
||||
}],
|
||||
"vars": [{
|
||||
|
@ -10,7 +10,7 @@ OUTPUT:
|
||||
"types": [{
|
||||
"id": 0,
|
||||
"usr": "c:@S@Foo",
|
||||
"instantiations": [0],
|
||||
"instances": [0],
|
||||
"uses": ["1:8-1:11", "4:3-4:6"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
@ -8,7 +8,7 @@ OUTPUT:
|
||||
"types": [{
|
||||
"id": 0,
|
||||
"usr": "c:@S@Foo",
|
||||
"instantiations": [0, 1],
|
||||
"instances": [0, 1],
|
||||
"uses": ["1:8-1:11", "3:10-3:13", "3:19-3:22"]
|
||||
}],
|
||||
"funcs": [{
|
||||
|
Loading…
Reference in New Issue
Block a user