ccls/index_tests/usage/var_usage_cstyle_cast.cc

136 lines
2.5 KiB
C++
Raw Normal View History

2018-03-31 03:16:33 +00:00
enum VarType {};
struct Holder {
static constexpr VarType static_var = (VarType)0x0;
};
const VarType Holder::static_var;
/*
OUTPUT:
{
"includes": [],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
2018-07-08 19:49:27 +00:00
"usr2func": [],
"usr2type": [{
2018-03-31 03:16:33 +00:00
"usr": 5792006888140599735,
"detailed_name": "enum VarType {}",
2018-07-07 23:56:47 +00:00
"qual_name_offset": 5,
2018-03-31 03:16:33 +00:00
"short_name": "VarType",
"spell": "1:6-1:13|1:1-1:16|2|-1",
2018-03-31 03:16:33 +00:00
"bases": [],
"funcs": [],
"types": [],
2018-03-31 03:16:33 +00:00
"vars": [],
"alias_of": 0,
"kind": 10,
"parent_kind": 0,
"declarations": [],
"derived": [],
2018-07-07 23:56:47 +00:00
"instances": [7057400933868440116, 7057400933868440116],
"uses": ["4:20-4:27|4|-1", "4:42-4:49|4|-1", "7:7-7:14|4|-1"]
2018-03-31 03:16:33 +00:00
}, {
"usr": 10028537921178202800,
2018-07-07 23:56:47 +00:00
"detailed_name": "struct Holder {}",
"qual_name_offset": 7,
2018-03-31 03:16:33 +00:00
"short_name": "Holder",
"spell": "3:8-3:14|3:1-5:2|2|-1",
2018-03-31 03:16:33 +00:00
"bases": [],
"funcs": [],
"types": [],
2018-07-07 23:56:47 +00:00
"vars": [],
"alias_of": 0,
"kind": 23,
"parent_kind": 0,
"declarations": [],
"derived": [],
2018-03-31 03:16:33 +00:00
"instances": [],
"uses": ["7:15-7:21|4|-1"]
2018-03-31 03:16:33 +00:00
}],
"usr2var": [{
2018-03-31 03:16:33 +00:00
"usr": 7057400933868440116,
2018-07-07 23:56:47 +00:00
"detailed_name": "static constexpr VarType Holder::static_var",
"qual_name_offset": 25,
2018-03-31 03:16:33 +00:00
"short_name": "static_var",
2018-07-08 19:49:27 +00:00
"hover": "static constexpr VarType Holder::static_var = (VarType)0x0",
"spell": "7:23-7:33|7:1-7:33|1026|-1",
"type": 5792006888140599735,
2018-07-07 23:56:47 +00:00
"kind": 13,
"parent_kind": 23,
"storage": 2,
"declarations": ["4:28-4:38|4:3-4:53|1025|-1"],
"uses": []
2018-03-31 03:16:33 +00:00
}]
}
*/
//#include <string>
//#include <xiosbase>
//#include <sstream>
//#include <algorithm>
//#include <vector>
//#include <string>
//#include <cstddef>
//#include <sstream>
//#include <iomanip>
//#include <limits>
//#include <vector>
//#include <cstddef>
//#include <tuple>
//#include <type_traits>
//#include <string>
//#include <string>
//#include <type_traits>
//#include <iterator>
//#include <vector>
//#include <string>
//#include <stdlib.h>
//#include <string>
//#include <vector>
//#include <string>
//#include <cstddef>
//#include <cmath>
//#include <limits>
//#include <type_traits>
//#include <set>
//#include <string>
//#include <vector>
//#include <iosfwd>
//#include <streambuf>
//#include <ostream>
//#include <fstream>
//#include <memory>
//#include <vector>
//#include <string>
//#include <stdexcept>
//#include <string>
//#include <vector>
//#include <sstream>
//#include <algorithm>