mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 23:55:08 +00:00
60 lines
1.4 KiB
C++
60 lines
1.4 KiB
C++
#define MACRO_CALL(e) e
|
|
|
|
bool called(bool a, bool b);
|
|
|
|
void caller() {
|
|
MACRO_CALL(called(true, true));
|
|
}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"includes": [],
|
|
"skipped_ranges": [],
|
|
"usr2func": [{
|
|
"usr": 3787803219955606747,
|
|
"detailed_name": "bool called(bool a, bool b)",
|
|
"qual_name_offset": 5,
|
|
"short_name": "called",
|
|
"bases": [],
|
|
"vars": [],
|
|
"callees": [],
|
|
"kind": 12,
|
|
"parent_kind": 0,
|
|
"storage": 0,
|
|
"declarations": ["3:6-3:12|3:1-3:28|1|-1"],
|
|
"derived": [],
|
|
"uses": ["6:14-6:20|16420|-1", "6:14-6:20|64|0"]
|
|
}, {
|
|
"usr": 11404881820527069090,
|
|
"detailed_name": "void caller()",
|
|
"qual_name_offset": 5,
|
|
"short_name": "caller",
|
|
"spell": "5:6-5:12|5:1-7:2|2|-1",
|
|
"bases": [],
|
|
"vars": [],
|
|
"callees": ["6:14-6:20|3787803219955606747|3|16420"],
|
|
"kind": 12,
|
|
"parent_kind": 0,
|
|
"storage": 0,
|
|
"declarations": [],
|
|
"derived": [],
|
|
"uses": []
|
|
}],
|
|
"usr2type": [],
|
|
"usr2var": [{
|
|
"usr": 16326993795872073150,
|
|
"detailed_name": "MACRO_CALL",
|
|
"qual_name_offset": 0,
|
|
"short_name": "MACRO_CALL",
|
|
"hover": "#define MACRO_CALL(e) e",
|
|
"spell": "1:9-1:19|1:9-1:24|2|-1",
|
|
"type": 0,
|
|
"kind": 255,
|
|
"parent_kind": 1,
|
|
"storage": 0,
|
|
"declarations": [],
|
|
"uses": ["6:3-6:13|64|-1"]
|
|
}]
|
|
}
|
|
*/ |