ccls/index_tests/usage/func_usage_call_func.cc
Fangrui Song 8cce275206 Misc improvement to indexer
* Make CXXConstructor span one more column to left/right
* Use OrigD to collect Decl::Record members
* Better comment parsing
* Limit lines of initializers and macro definition to 3
* Attribute macro arg uses to spelling loc
* Remove FuncDef::declaring_type
2019-10-24 01:01:20 -07:00

46 lines
914 B
C++

void called() {}
void caller() {
called();
}
/*
OUTPUT:
{
"includes": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 468307235068920063,
"detailed_name": "void called()",
"qual_name_offset": 5,
"short_name": "called",
"kind": 12,
"storage": 0,
"declarations": [],
"spell": "1:6-1:12|0|1|2",
"extent": "1:1-1:17|0|1|0",
"bases": [],
"derived": [],
"vars": [],
"uses": ["3:3-3:9|0|1|16420"],
"callees": []
}, {
"usr": 11404881820527069090,
"detailed_name": "void caller()",
"qual_name_offset": 5,
"short_name": "caller",
"kind": 12,
"storage": 0,
"declarations": [],
"spell": "2:6-2:12|0|1|2",
"extent": "2:1-4:2|0|1|0",
"bases": [],
"derived": [],
"vars": [],
"uses": [],
"callees": []
}],
"usr2type": [],
"usr2var": []
}
*/