2018-03-31 03:16:33 +00:00
|
|
|
#define A 5
|
|
|
|
#define DISALLOW(type) type(type&&) = delete;
|
|
|
|
|
|
|
|
struct Foo {
|
|
|
|
DISALLOW(Foo);
|
|
|
|
};
|
|
|
|
|
|
|
|
int x = A;
|
|
|
|
|
|
|
|
/*
|
|
|
|
OUTPUT:
|
|
|
|
{
|
|
|
|
"includes": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"skipped_ranges": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2func": [{
|
|
|
|
"usr": 13788753348312146871,
|
2018-06-01 23:51:39 +00:00
|
|
|
"detailed_name": "Foo::Foo(Foo &&) = delete",
|
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Foo",
|
2018-04-30 04:49:03 +00:00
|
|
|
"kind": 9,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0,
|
2018-04-30 04:49:03 +00:00
|
|
|
"declarations": [],
|
2018-07-15 18:27:59 +00:00
|
|
|
"spell": "5:12-5:15|15041163540773201510|2|1026",
|
2018-07-25 17:36:30 +00:00
|
|
|
"extent": "5:12-5:15|15041163540773201510|2|0",
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"vars": [],
|
2018-07-13 02:13:01 +00:00
|
|
|
"uses": ["5:12-5:15|0|1|64|0"],
|
2018-04-30 04:49:03 +00:00
|
|
|
"callees": []
|
|
|
|
}],
|
|
|
|
"usr2type": [{
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr": 53,
|
2018-03-31 03:16:33 +00:00
|
|
|
"detailed_name": "",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "",
|
|
|
|
"kind": 0,
|
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [10677751717622394455],
|
2018-03-31 03:16:33 +00:00
|
|
|
"uses": []
|
2018-04-30 04:49:03 +00:00
|
|
|
}, {
|
|
|
|
"usr": 15041163540773201510,
|
2018-07-07 23:56:47 +00:00
|
|
|
"detailed_name": "struct Foo {}",
|
|
|
|
"qual_name_offset": 7,
|
2018-03-31 03:16:33 +00:00
|
|
|
"short_name": "Foo",
|
2018-04-30 04:49:03 +00:00
|
|
|
"kind": 23,
|
2018-07-07 23:56:47 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "4:8-4:11|0|1|2",
|
|
|
|
"extent": "4:1-6:2|0|1|0",
|
|
|
|
"alias_of": 0,
|
2018-03-31 03:16:33 +00:00
|
|
|
"bases": [],
|
|
|
|
"derived": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"types": [],
|
|
|
|
"funcs": [13788753348312146871],
|
2018-03-31 03:16:33 +00:00
|
|
|
"vars": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"instances": [],
|
2018-07-21 06:27:47 +00:00
|
|
|
"uses": ["5:12-5:15|15041163540773201510|2|4", "5:12-5:15|0|1|64|0"]
|
2018-03-31 03:16:33 +00:00
|
|
|
}],
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr2var": [{
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr": 1569772797058982873,
|
|
|
|
"detailed_name": "A",
|
2018-04-30 04:49:03 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-07-07 23:56:47 +00:00
|
|
|
"short_name": "A",
|
2018-07-08 19:49:27 +00:00
|
|
|
"hover": "#define A 5",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"spell": "1:9-1:10|0|1|2",
|
2018-07-08 19:49:27 +00:00
|
|
|
"extent": "1:9-1:12|0|1|0",
|
2018-04-30 04:49:03 +00:00
|
|
|
"type": 0,
|
2018-07-13 02:13:01 +00:00
|
|
|
"uses": ["8:9-8:10|0|1|64"],
|
2018-04-30 04:49:03 +00:00
|
|
|
"kind": 255,
|
|
|
|
"storage": 0
|
2018-03-31 03:16:33 +00:00
|
|
|
}, {
|
2018-07-07 23:56:47 +00:00
|
|
|
"usr": 4904139678698066671,
|
|
|
|
"detailed_name": "DISALLOW",
|
2018-04-06 00:00:07 +00:00
|
|
|
"qual_name_offset": 0,
|
2018-07-07 23:56:47 +00:00
|
|
|
"short_name": "DISALLOW",
|
2018-07-08 19:49:27 +00:00
|
|
|
"hover": "#define DISALLOW(type) type(type&&) = delete;",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-07-07 23:56:47 +00:00
|
|
|
"spell": "2:9-2:17|0|1|2",
|
2018-07-08 19:49:27 +00:00
|
|
|
"extent": "2:9-2:46|0|1|0",
|
2018-04-30 04:49:03 +00:00
|
|
|
"type": 0,
|
2018-07-13 02:13:01 +00:00
|
|
|
"uses": ["5:3-5:11|0|1|64"],
|
2018-03-31 03:16:33 +00:00
|
|
|
"kind": 255,
|
|
|
|
"storage": 0
|
|
|
|
}, {
|
2018-04-30 04:49:03 +00:00
|
|
|
"usr": 10677751717622394455,
|
|
|
|
"detailed_name": "int x",
|
|
|
|
"qual_name_offset": 4,
|
|
|
|
"short_name": "x",
|
2018-07-27 07:21:57 +00:00
|
|
|
"hover": "int x = A",
|
2018-03-31 03:16:33 +00:00
|
|
|
"declarations": [],
|
2018-04-30 04:49:03 +00:00
|
|
|
"spell": "8:5-8:6|0|1|2",
|
2018-07-07 23:56:47 +00:00
|
|
|
"extent": "8:1-1:1|0|1|0",
|
|
|
|
"type": 53,
|
2018-04-30 04:49:03 +00:00
|
|
|
"uses": [],
|
|
|
|
"kind": 13,
|
2018-06-01 23:51:39 +00:00
|
|
|
"storage": 0
|
2018-03-31 03:16:33 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|