ccls/index_tests/multi_file/static.cc

87 lines
2.0 KiB
C++
Raw Normal View History

2018-03-31 03:16:33 +00:00
#include "static.h"
void Buffer::CreateSharedBuffer() {}
/*
OUTPUT: static.h
{
"includes": [],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [{
"usr": 14576076421851654759,
"detailed_name": "static void Buffer::CreateSharedBuffer()",
"qual_name_offset": 12,
"short_name": "CreateSharedBuffer",
2018-07-07 23:56:47 +00:00
"kind": 6,
"storage": 0,
2018-07-10 06:40:26 +00:00
"declarations": ["4:15-4:33|9411323049603567600|2|1025"],
2018-07-07 23:56:47 +00:00
"declaring_type": 0,
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
2018-03-31 03:16:33 +00:00
"usr": 9411323049603567600,
2018-07-07 23:56:47 +00:00
"detailed_name": "struct Buffer {}",
"qual_name_offset": 7,
2018-03-31 03:16:33 +00:00
"short_name": "Buffer",
"kind": 23,
"declarations": [],
"spell": "3:8-3:14|0|1|2",
"extent": "3:1-5:2|0|1|0",
"alias_of": 0,
2018-03-31 03:16:33 +00:00
"bases": [],
"derived": [],
"types": [],
"funcs": [14576076421851654759],
2018-03-31 03:16:33 +00:00
"vars": [],
"instances": [],
"uses": []
}],
"usr2var": []
}
OUTPUT: static.cc
{
2018-07-08 07:46:53 +00:00
"includes": [{
"line": 0,
"resolved_path": "&static.h"
}],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [{
2018-03-31 03:16:33 +00:00
"usr": 14576076421851654759,
2018-07-08 19:49:27 +00:00
"detailed_name": "void Buffer::CreateSharedBuffer()",
"qual_name_offset": 5,
2018-03-31 03:16:33 +00:00
"short_name": "CreateSharedBuffer",
2018-07-07 23:56:47 +00:00
"kind": 6,
"storage": 0,
"declarations": [],
2018-07-10 06:40:26 +00:00
"spell": "3:14-3:32|9411323049603567600|2|1026",
2018-07-08 07:46:53 +00:00
"extent": "3:1-3:37|0|1|0",
2018-07-07 23:56:47 +00:00
"declaring_type": 0,
2018-03-31 03:16:33 +00:00
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [{
2018-03-31 03:16:33 +00:00
"usr": 9411323049603567600,
2018-07-07 23:56:47 +00:00
"detailed_name": "struct Buffer {}",
"qual_name_offset": 7,
"short_name": "Buffer",
"kind": 23,
2018-03-31 03:16:33 +00:00
"declarations": [],
"alias_of": 0,
2018-03-31 03:16:33 +00:00
"bases": [],
"derived": [],
"types": [],
"funcs": [14576076421851654759],
2018-03-31 03:16:33 +00:00
"vars": [],
"instances": [],
"uses": ["3:6-3:12|0|1|4"]
2018-03-31 03:16:33 +00:00
}],
"usr2var": []
2018-03-31 03:16:33 +00:00
}
*/