ccls/index_tests/multi_file/simple_impl.cc

71 lines
1.4 KiB
C++
Raw Normal View History

2018-03-31 03:16:33 +00:00
#include "simple_header.h"
void impl() {
header();
}
/*
OUTPUT: simple_header.h
{
"includes": [],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [{
2018-03-31 03:16:33 +00:00
"usr": 16236105532929924676,
"detailed_name": "void header()",
"qual_name_offset": 5,
2018-03-31 03:16:33 +00:00
"short_name": "header",
"bases": [],
"vars": [],
"callees": [],
2018-03-31 03:16:33 +00:00
"kind": 12,
"parent_kind": 0,
"storage": 0,
"declarations": ["3:6-3:12|3:1-3:14|1|-1"],
2018-03-31 03:16:33 +00:00
"derived": [],
"uses": []
2018-03-31 03:16:33 +00:00
}],
"usr2type": [],
"usr2var": []
2018-03-31 03:16:33 +00:00
}
OUTPUT: simple_impl.cc
{
2018-07-08 07:46:53 +00:00
"includes": [{
"line": 0,
"resolved_path": "&simple_header.h"
}],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [{
2018-03-31 03:16:33 +00:00
"usr": 3373269392705484958,
"detailed_name": "void impl()",
"qual_name_offset": 5,
2018-03-31 03:16:33 +00:00
"short_name": "impl",
"spell": "3:6-3:10|3:1-5:2|2|-1",
"bases": [],
"vars": [],
"callees": ["4:3-4:9|16236105532929924676|3|16420"],
2018-03-31 03:16:33 +00:00
"kind": 12,
"parent_kind": 0,
"storage": 0,
2018-03-31 03:16:33 +00:00
"declarations": [],
"derived": [],
"uses": []
2018-03-31 03:16:33 +00:00
}, {
"usr": 16236105532929924676,
2018-07-07 23:56:47 +00:00
"detailed_name": "void header()",
"qual_name_offset": 5,
"short_name": "header",
"bases": [],
"vars": [],
"callees": [],
2018-07-07 23:56:47 +00:00
"kind": 12,
"parent_kind": 0,
2018-03-31 03:16:33 +00:00
"storage": 0,
"declarations": [],
"derived": [],
"uses": ["4:3-4:9|16420|-1"]
2018-03-31 03:16:33 +00:00
}],
"usr2type": [],
"usr2var": []
2018-03-31 03:16:33 +00:00
}
*/