mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-30 03:17:08 +00:00
29 lines
578 B
C++
29 lines
578 B
C++
#define MACRO_CALL(e) e
|
|
|
|
bool called(bool a, bool b);
|
|
|
|
void caller() {
|
|
MACRO_CALL(called(true, true));
|
|
}
|
|
|
|
/*
|
|
OUTPUT:
|
|
{
|
|
"funcs": [{
|
|
"id": 0,
|
|
"usr": "c:@F@called#b#b#",
|
|
"short_name": "called",
|
|
"detailed_name": "bool called(bool, bool)",
|
|
"declarations": ["3:6-3:12"],
|
|
"callers": ["1@6:14-6:20"]
|
|
}, {
|
|
"id": 1,
|
|
"usr": "c:@F@caller#",
|
|
"short_name": "caller",
|
|
"detailed_name": "void caller()",
|
|
"definition_spelling": "5:6-5:12",
|
|
"definition_extent": "5:1-7:2",
|
|
"callees": ["0@6:14-6:20"]
|
|
}]
|
|
}
|
|
*/ |