| 1 |
#define FOO(aaa, bbb) \ |
| 2 |
int a();\ |
| 3 |
int a() { return aaa + bbb; } |
| 4 |
|
| 5 |
|
| 6 |
int make1() { |
| 7 |
return 3; |
| 8 |
} |
| 9 |
const int make2 = 5; |
| 10 |
|
| 11 |
|
| 12 |
FOO(make1(), make2); |
| 13 |
|
| 14 |
/* |
| 15 |
OUTPUT: |
| 16 |
{ |
| 17 |
"includes": [], |
| 18 |
"skipped_ranges": [], |
| 19 |
"usr2func": [{ |
| 20 |
"usr": 9720930732776154610, |
| 21 |
"detailed_name": "int a()", |
| 22 |
"qual_name_offset": 4, |
| 23 |
"short_name": "a", |
| 24 |
"spell": "12:1-12:20|12:1-12:4|2|-1", |
| 25 |
"bases": [], |
| 26 |
"vars": [], |
| 27 |
"callees": ["12:5-12:10|14400399977994209582|3|16420"], |
| 28 |
"kind": 12, |
| 29 |
"parent_kind": 1, |
| 30 |
"storage": 0, |
| 31 |
"declarations": ["12:1-12:20|12:1-12:4|1|-1"], |
| 32 |
"derived": [], |
| 33 |
"uses": ["2:7-2:8|64|0", "3:7-3:8|64|0"] |
| 34 |
}, { |
| 35 |
"usr": 14400399977994209582, |
| 36 |
"detailed_name": "int make1()", |
| 37 |
"qual_name_offset": 4, |
| 38 |
"short_name": "make1", |
| 39 |
"spell": "6:5-6:10|6:1-8:2|2|-1", |
| 40 |
"bases": [], |
| 41 |
"vars": [], |
| 42 |
"callees": [], |
| 43 |
"kind": 12, |
| 44 |
"parent_kind": 1, |
| 45 |
"storage": 0, |
| 46 |
"declarations": [], |
| 47 |
"derived": [], |
| 48 |
"uses": ["12:5-12:10|16420|-1", "12:5-12:10|64|0"] |
| 49 |
}], |
| 50 |
"usr2type": [{ |
| 51 |
"usr": 452, |
| 52 |
"detailed_name": "", |
| 53 |
"qual_name_offset": 0, |
| 54 |
"short_name": "", |
| 55 |
"bases": [], |
| 56 |
"funcs": [], |
| 57 |
"types": [], |
| 58 |
"vars": [], |
| 59 |
"alias_of": 0, |
| 60 |
"kind": 0, |
| 61 |
"parent_kind": 0, |
| 62 |
"declarations": [], |
| 63 |
"derived": [], |
| 64 |
"instances": [2878407290385495202], |
| 65 |
"uses": [] |
| 66 |
}], |
| 67 |
"usr2var": [{ |
| 68 |
"usr": 2878407290385495202, |
| 69 |
"detailed_name": "const int make2", |
| 70 |
"qual_name_offset": 10, |
| 71 |
"short_name": "make2", |
| 72 |
"hover": "const int make2 = 5", |
| 73 |
"spell": "9:11-9:16|9:1-9:20|2|-1", |
| 74 |
"type": 452, |
| 75 |
"kind": 13, |
| 76 |
"parent_kind": 1, |
| 77 |
"storage": 0, |
| 78 |
"declarations": [], |
| 79 |
"uses": ["12:14-12:19|12|-1", "12:14-12:19|64|0"] |
| 80 |
}, { |
| 81 |
"usr": 14219599523415845943, |
| 82 |
"detailed_name": "FOO", |
| 83 |
"qual_name_offset": 0, |
| 84 |
"short_name": "FOO", |
| 85 |
"hover": "#define FOO(aaa, bbb) \\\n int a();\\\n int a() { return aaa + bbb; }", |
| 86 |
"spell": "1:9-1:12|1:9-3:32|2|-1", |
| 87 |
"type": 0, |
| 88 |
"kind": 255, |
| 89 |
"parent_kind": 1, |
| 90 |
"storage": 0, |
| 91 |
"declarations": [], |
| 92 |
"uses": ["12:1-12:4|64|-1"] |
| 93 |
}] |
| 94 |
} |
| 95 |
*/ |