ccls/index_tests/constructors/invalid_reference.cc

52 lines
1.0 KiB
C++
Raw Normal View History

2018-03-31 03:16:33 +00:00
struct Foo {};
template<class T>
Foo::Foo() {}
/*
EXTRA_FLAGS:
-fms-compatibility
-fdelayed-template-parsing
OUTPUT:
{
"includes": [],
2018-07-07 23:56:47 +00:00
"skipped_ranges": [],
"usr2func": [{
2018-03-31 03:16:33 +00:00
"usr": 17319723337446061757,
2018-07-07 23:56:47 +00:00
"detailed_name": "Foo::Foo::Foo()",
"qual_name_offset": 0,
2018-03-31 03:16:33 +00:00
"short_name": "Foo",
"spell": "4:6-4:9|4:1-4:11|1026|-1",
"bases": [],
"vars": [],
"callees": [],
2018-03-31 03:16:33 +00:00
"kind": 9,
"parent_kind": 23,
"storage": 0,
2018-03-31 03:16:33 +00:00
"declarations": [],
"derived": [],
"uses": []
2018-03-31 03:16:33 +00:00
}],
"usr2type": [{
"usr": 15041163540773201510,
2018-07-07 23:56:47 +00:00
"detailed_name": "struct Foo {}",
"qual_name_offset": 7,
"short_name": "Foo",
"spell": "1:8-1:11|1:1-1:14|2|-1",
"bases": [],
"funcs": [17319723337446061757],
"types": [],
"vars": [],
"alias_of": 0,
"kind": 23,
"parent_kind": 0,
"declarations": [],
"derived": [],
"instances": [],
"uses": ["4:1-4:4|4|-1", "4:6-4:9|4|-1"]
}],
"usr2var": []
2018-03-31 03:16:33 +00:00
}
*/