2018-03-31 03:16:33 +00:00
|
|
|
#define FOO(aaa, bbb) \
|
|
|
|
int a();\
|
|
|
|
int a() { return aaa + bbb; }
|
|
|
|
|
|
|
|
|
|
|
|
int make1() {
|
|
|
|
return 3;
|
|
|
|
}
|
|
|
|
const int make2 = 5;
|
|
|
|
|
|
|
|
|
|
|
|
FOO(make1(), make2);
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
|
|
|
"usr": 9720930732776154610,
|
|
|
|
"detailed_name": "int a()",
|
|
|
|
"qual_name_offset": 4,
|
|
|
|
"short_name": "a",
|
|
|
|
"kind": 12,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-07-13 02:13:01 +00:00
|
|
|
"declarations": ["12:1-12:20|0|1|1"],
|
|
|
|
"spell": "12:1-12:20|0|1|2",
|
2018-07-07 23:56:47 +00:00
|
|
|
"extent": "1:1-1:1|0|1|0",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-07-13 02:13:01 +00:00
|
|
|
"uses": ["2:7-2:8|0|1|64|0", "3:7-3:8|0|1|64|0"],
|
2018-07-21 06:27:47 +00:00
|
|
|
"callees": ["12:5-12:10|14400399977994209582|3|16420"]
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 14400399977994209582,
|
|
|
|
"detailed_name": "int make1()",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 4,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "make1",
|
|
|
|
"kind": 12,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "6:5-6:10|0|1|2",
|
|
|
|
"extent": "6:1-8:2|0|1|0",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-07-21 06:27:47 +00:00
|
|
|
"uses": ["12:5-12:10|9720930732776154610|3|16420", "12:5-12:10|0|1|64|0"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"callees": []
|
2018-04-30 04:49:03 +00:00
|
|
|
}],
|
|
|
|
"usr2type": [{
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr": 53,
|
2018-04-30 04:49:03 +00:00
|
|
|
"detailed_name": "",
|
|
|
|
"qual_name_offset": 0,
|
|
|
|
"short_name": "",
|
|
|
|
"kind": 0,
|
|
|
|
"declarations": [],
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [2878407290385495202],
|
|
|
|
"uses": []
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": [{
|
2018-03-31 03:16:33 +00:00
|
|
|
"usr": 2878407290385495202,
|
|
|
|
"detailed_name": "const int make2",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 10,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "make2",
|
|
|
|
"hover": "const int make2 = 5",
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "9:11-9:16|0|1|2",
|
|
|
|
"extent": "9:1-9:20|0|1|0",
|
2018-07-07 23:56:47 +00:00
|
|
|
"type": 53,
|
2018-07-21 06:27:47 +00:00
|
|
|
"uses": ["12:14-12:19|9720930732776154610|3|12", "12:14-12:19|0|1|64|0"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 13,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr": 14219599523415845943,
|
2018-03-31 03:16:33 +00:00
|
|
|
"detailed_name": "FOO",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "FOO",
|
2018-07-08 19:49:27 +00:00
|
|
|
"hover": "#define FOO(aaa, bbb) \\\n int a();\\\n int a() { return aaa + bbb; }",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "1:9-1:12|0|1|2",
|
2018-07-08 19:49:27 +00:00
|
|
|
"extent": "1:9-3:32|0|1|0",
|
2018-04-30 04:49:03 +00:00
|
|
|
"type": 0,
|
2018-07-13 02:13:01 +00:00
|
|
|
"uses": ["12:1-12:4|0|1|64"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 255,
|
|
|
|
"storage": 0
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|