mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 19:07:08 +00:00
30 lines
600 B
C++
30 lines
600 B
C++
void called() {}
|
|
void caller() {
|
|
called();
|
|
}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"funcs": [{
|
|
"id": 0,
|
|
"usr": "c:@F@called#",
|
|
"short_name": "called",
|
|
"qualified_name": "called",
|
|
"definition_spelling": "1:6-1:12",
|
|
"definition_extent": "1:1-1:17",
|
|
"callers": ["1@3:3-3:9"],
|
|
"uses": ["1:6-1:12", "3:3-3:9"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:@F@caller#",
|
|
"short_name": "caller",
|
|
"qualified_name": "caller",
|
|
"definition_spelling": "2:6-2:12",
|
|
"definition_extent": "2:1-4:2",
|
|
"callees": ["0@3:3-3:9"],
|
|
"uses": ["2:6-2:12"]
|
|
}]
|
|
}
|
|
*/
|