2017-04-08 18:36:32 +00:00
|
|
|
#define MACRO_CALL(e) e
|
|
|
|
|
|
|
|
bool called(bool a, bool b);
|
|
|
|
|
|
|
|
void caller() {
|
|
|
|
MACRO_CALL(called(true, true));
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
2017-12-12 05:15:37 +00:00
|
|
|
"includes": [],
|
|
|
|
"skipped_by_preprocessor": [],
|
|
|
|
"types": [],
|
2017-04-08 18:36:32 +00:00
|
|
|
"funcs": [{
|
|
|
|
"id": 0,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-04-08 18:36:32 +00:00
|
|
|
"usr": "c:@F@called#b#b#",
|
|
|
|
"short_name": "called",
|
2017-12-27 23:49:26 +00:00
|
|
|
"detailed_name": "bool called(bool a, bool b)",
|
2017-05-27 21:09:20 +00:00
|
|
|
"declarations": [{
|
2017-05-28 01:53:22 +00:00
|
|
|
"spelling": "3:6-3:12",
|
|
|
|
"extent": "3:1-3:28",
|
|
|
|
"content": "bool called(bool a, bool b)",
|
|
|
|
"param_spellings": ["3:18-3:19", "3:26-3:27"]
|
2017-05-27 21:09:20 +00:00
|
|
|
}],
|
2017-12-19 06:15:46 +00:00
|
|
|
"base": [],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"locals": [],
|
|
|
|
"callers": ["1@6:14-6:20"],
|
|
|
|
"callees": []
|
2017-04-08 18:36:32 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-04-08 18:36:32 +00:00
|
|
|
"usr": "c:@F@caller#",
|
|
|
|
"short_name": "caller",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "void caller()",
|
2017-12-12 05:15:37 +00:00
|
|
|
"declarations": [],
|
2017-04-08 18:36:32 +00:00
|
|
|
"definition_spelling": "5:6-5:12",
|
|
|
|
"definition_extent": "5:1-7:2",
|
2017-12-19 06:15:46 +00:00
|
|
|
"base": [],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"locals": [],
|
|
|
|
"callers": [],
|
2017-04-13 07:47:47 +00:00
|
|
|
"callees": ["0@6:14-6:20"]
|
2017-05-21 01:58:54 +00:00
|
|
|
}],
|
|
|
|
"vars": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:func_called_from_macro_argument.cc@8@macro@MACRO_CALL",
|
|
|
|
"short_name": "MACRO_CALL",
|
2017-12-19 05:20:00 +00:00
|
|
|
"detailed_name": "MACRO_CALL",
|
|
|
|
"hover": "#define MACRO_CALL(e) e",
|
2017-05-21 01:58:54 +00:00
|
|
|
"definition_spelling": "1:9-1:19",
|
|
|
|
"definition_extent": "1:9-1:24",
|
2017-12-24 00:49:11 +00:00
|
|
|
"cls": 2,
|
2017-05-21 01:58:54 +00:00
|
|
|
"uses": ["1:9-1:19", "6:3-6:13"]
|
2017-04-08 18:36:32 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|