Change var.def.is_* to enum.

This commit is contained in:
scturtle 2017-12-24 08:49:11 +08:00 committed by Jacob Dufault
parent f6d84cd68c
commit cb7ccbe543
82 changed files with 192 additions and 625 deletions

View File

@ -951,8 +951,7 @@ ClangCursor::VisitResult VisitMacroDefinitionAndExpansions(ClangCursor cursor,
var_def->def.detailed_name = cursor.get_display_name();
var_def->def.hover =
"#define " + GetDocumentContentInRange(param->tu->cx_tu, cx_extent);
var_def->def.is_local = false;
var_def->def.is_macro = true;
var_def->def.cls = VarClass::Macro;
var_def->def.definition_spelling = decl_loc_spelling;
var_def->def.definition_extent = Resolve(cx_extent, nullptr);
}
@ -1059,13 +1058,16 @@ void OnIndexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) {
bool is_system = clang_Location_isInSystemHeader(
clang_indexLoc_getCXSourceLocation(decl->loc));
var->def.is_global =
!is_system && IsGlobalContainer(decl->semanticContainer);
var->def.is_member =
!is_system && IsTypeDefinition(decl->semanticContainer);
var->def.is_local =
!is_system && !var->def.is_global && !var->def.is_member;
if (is_system)
var->def.cls = VarClass::Unknown;
else {
if (IsGlobalContainer(decl->semanticContainer))
var->def.cls = VarClass::Global;
else if (IsTypeDefinition(decl->semanticContainer))
var->def.cls = VarClass::Member;
else
var->def.cls = VarClass::Local;
}
//}
if (decl->isDefinition) {
@ -1491,8 +1493,7 @@ void OnIndexReference(CXClientData client_data, const CXIdxEntityRefInfo* ref) {
std::string type_name = ToString(
clang_getTypeSpelling(clang_getCursorType(referenced.cx_cursor)));
var->def.detailed_name = type_name + " " + var->def.short_name;
var->def.is_local = false;
var->def.is_member = true;
var->def.cls = VarClass::Member;
UniqueAdd(var->uses, ResolveSpelling(referenced.cx_cursor));
AddDeclInitializerUsages(db, referenced.cx_cursor);
// TODO Use proper semantic_container and lexical_container.

View File

@ -355,6 +355,20 @@ MAKE_REFLECT_STRUCT(IndexFunc::Declaration,
content,
param_spellings);
enum class VarClass {
// probably a variable in system headers
Unknown = 0,
// a parameter or function variable
Local = 1,
// a macro, ie, #define FOO
Macro = 2,
// a global variable
Global = 3,
// a member variable of struct/union/class/enum
Member = 4
};
MAKE_REFLECT_TYPE_PROXY(VarClass, std::underlying_type<VarClass>::type);
template <typename TypeId, typename FuncId, typename VarId, typename Range>
struct VarDefDefinitionData {
// General metadata.
@ -373,14 +387,10 @@ struct VarDefDefinitionData {
// Type which declares this one.
optional<TypeId> declaring_type;
// Is this a parameter or function variable?
bool is_local = false;
// Is this a macro, ie, #define FOO?
bool is_macro = false;
// Is this a global variable?
bool is_global = false;
// Is this a member variable of struct/union/class/enum?
bool is_member = false;
VarClass cls;
bool is_local() const { return cls == VarClass::Local; }
bool is_macro() const { return cls == VarClass::Macro; }
bool operator==(
const VarDefDefinitionData<TypeId, FuncId, VarId, Range>& other) const {
@ -413,10 +423,7 @@ void Reflect(TVisitor& visitor,
REFLECT_MEMBER(definition_extent);
REFLECT_MEMBER(variable_type);
REFLECT_MEMBER(declaring_type);
REFLECT_MEMBER(is_local);
REFLECT_MEMBER(is_macro);
REFLECT_MEMBER(is_global);
REFLECT_MEMBER(is_member);
REFLECT_MEMBER(cls);
REFLECT_MEMBER_END();
}

View File

@ -106,8 +106,14 @@ void EmitSemanticHighlighting(QueryDatabase* db,
QueryVar* var = &db->vars[sym.idx.idx];
if (!var->def)
continue; // applies to for loop
if (!var->def->is_local && !var->def->is_global && !var->def->is_member)
switch (var->def->cls) {
case VarClass::Local:
case VarClass::Global:
case VarClass::Member:
break;
default:
continue; // applies to for loop
}
is_type_member = var->def->declaring_type.has_value();
detailed_name = var->def->short_name;
break;

View File

@ -236,13 +236,13 @@ struct TextDocumentCodeLensHandler
if (!var.def)
continue;
if (var.def->is_local && !config->codeLensOnLocalVariables)
if (var.def->is_local() && !config->codeLensOnLocalVariables)
continue;
bool force_display = true;
// Do not show 0 refs on macro with no uses, as it is most likely
// a header guard.
if (var.def->is_macro)
if (var.def->is_macro())
force_display = false;
AddCodeLens("ref", "refs", &common, ref.loc.OffsetStartColumn(0),

View File

@ -69,10 +69,7 @@ optional<QueryVar::Def> ToQuery(const IdMap& id_map, const IndexVar::Def& var) {
result.definition_extent = id_map.ToQuery(var.definition_extent);
result.variable_type = id_map.ToQuery(var.variable_type);
result.declaring_type = id_map.ToQuery(var.declaring_type);
result.is_local = var.is_local;
result.is_macro = var.is_macro;
result.is_global = var.is_global;
result.is_member = var.is_member;
result.cls = var.cls;
return result;
}
@ -828,7 +825,7 @@ void QueryDatabase::ImportOrUpdate(
continue;
existing.def = def.value;
if (!def.value.is_local)
if (!def.value.is_local())
UpdateDetailedNames(&existing.detailed_name_idx, SymbolKind::Var,
it->second.id, def.value.detailed_name);
}

View File

@ -147,10 +147,7 @@ void Reflect(TVisitor& visitor, IndexVar& value) {
REFLECT_MEMBER2("definition_extent", value.def.definition_extent);
REFLECT_MEMBER2("variable_type", value.def.variable_type);
REFLECT_MEMBER2("declaring_type", value.def.declaring_type);
REFLECT_MEMBER2("is_local", value.def.is_local);
REFLECT_MEMBER2("is_macro", value.def.is_macro);
REFLECT_MEMBER2("is_global", value.def.is_global);
REFLECT_MEMBER2("is_member", value.def.is_member);
REFLECT_MEMBER2("cls", value.def.cls);
REFLECT_MEMBER2("uses", value.uses);
REFLECT_MEMBER_END();
}

View File

@ -66,10 +66,7 @@ OUTPUT:
"definition_spelling": "7:7-7:8",
"definition_extent": "7:3-7:8",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["7:7-7:8"]
}, {
"id": 1,
@ -79,10 +76,7 @@ OUTPUT:
"definition_spelling": "8:8-8:10",
"definition_extent": "8:3-8:22",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["8:8-8:10"]
}]
}

View File

@ -86,10 +86,7 @@ OUTPUT:
"definition_spelling": "8:7-8:8",
"definition_extent": "8:3-8:8",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["8:7-8:8"]
}]
}

View File

@ -65,10 +65,7 @@ OUTPUT:
"definition_spelling": "6:8-6:12",
"definition_extent": "6:3-6:12",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["6:8-6:12"]
}, {
"id": 1,
@ -78,10 +75,7 @@ OUTPUT:
"definition_spelling": "7:8-7:12",
"definition_extent": "7:3-7:21",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["7:8-7:12"]
}]
}

View File

@ -298,10 +298,7 @@ OUTPUT: make_functions.cc
"detailed_name": "Args &&... args",
"definition_spelling": "4:25-4:29",
"definition_extent": "4:15-4:29",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:25-4:29"]
}, {
"id": 1,
@ -310,10 +307,7 @@ OUTPUT: make_functions.cc
"detailed_name": "Args... args",
"definition_spelling": "9:24-9:28",
"definition_extent": "9:16-9:28",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["9:24-9:28"]
}]
}

View File

@ -31,10 +31,7 @@ OUTPUT:
"definition_spelling": "2:7-2:10",
"definition_extent": "2:3-2:10",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:7-2:10"]
}]
}

View File

@ -34,10 +34,7 @@ OUTPUT:
"definition_spelling": "5:10-5:13",
"definition_extent": "5:1-5:13",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:14-2:17", "5:10-5:13"]
}]
}

View File

@ -47,10 +47,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "5:13-5:14",
"definition_extent": "5:9-5:14",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["5:13-5:14"]
}, {
"id": 1,
@ -59,10 +56,7 @@ OUTPUT:
"detailed_name": "int b",
"definition_spelling": "5:20-5:21",
"definition_extent": "5:16-5:21",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["5:20-5:21"]
}]
}

View File

@ -33,10 +33,7 @@ OUTPUT:
"definition_extent": "2:3-2:4",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:3-2:4"]
}, {
"id": 1,
@ -47,10 +44,7 @@ OUTPUT:
"definition_extent": "3:3-3:9",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["3:3-3:4"]
}]
}

View File

@ -33,10 +33,7 @@ OUTPUT:
"definition_extent": "2:3-2:4",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:3-2:4"]
}, {
"id": 1,
@ -47,10 +44,7 @@ OUTPUT:
"definition_extent": "3:3-3:9",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["3:3-3:4"]
}]
}

View File

@ -33,10 +33,7 @@ OUTPUT:
"definition_extent": "2:3-2:4",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:3-2:4"]
}, {
"id": 1,
@ -47,10 +44,7 @@ OUTPUT:
"definition_extent": "3:3-3:9",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["3:3-3:4"]
}]
}

View File

@ -35,10 +35,7 @@ OUTPUT:
"definition_extent": "2:3-2:4",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:3-2:4", "6:14-6:15"]
}, {
"id": 1,
@ -49,10 +46,7 @@ OUTPUT:
"definition_extent": "3:3-3:9",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["3:3-3:4"]
}, {
"id": 2,
@ -62,10 +56,7 @@ OUTPUT:
"definition_spelling": "6:5-6:6",
"definition_extent": "6:1-6:15",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["6:5-6:6"]
}]
}

View File

@ -79,10 +79,7 @@ OUTPUT:
"definition_spelling": "9:15-9:16",
"definition_extent": "9:1-9:16",
"variable_type": 3,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["9:15-9:16"]
}, {
"id": 1,
@ -92,10 +89,7 @@ OUTPUT:
"definition_spelling": "10:8-10:9",
"definition_extent": "10:1-10:9",
"variable_type": 2,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["10:8-10:9"]
}]
}

View File

@ -63,10 +63,7 @@ OUTPUT:
"detailed_name": "int x",
"definition_spelling": "2:7-2:8",
"definition_extent": "2:3-2:8",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["2:7-2:8", "5:7-5:8", "4:24-4:25"]
}, {
"id": 1,
@ -76,10 +73,7 @@ OUTPUT:
"definition_spelling": "4:8-4:19",
"definition_extent": "4:3-7:4",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:8-4:19", "9:3-9:14", "10:3-10:14", "11:3-11:14"]
}, {
"id": 2,
@ -88,10 +82,7 @@ OUTPUT:
"detailed_name": "int y",
"definition_spelling": "4:31-4:32",
"definition_extent": "4:27-4:32",
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["4:31-4:32", "6:7-6:8"]
}]
}

View File

@ -58,10 +58,7 @@ OUTPUT:
"detailed_name": "const int make2",
"definition_spelling": "9:11-9:16",
"definition_extent": "9:1-9:20",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["9:11-9:16", "12:14-12:19"]
}, {
"id": 1,
@ -71,10 +68,7 @@ OUTPUT:
"hover": "#define FOO(aaa, bbb)\n int a();\n int a() { return aaa + bbb; }",
"definition_spelling": "1:9-1:12",
"definition_extent": "1:9-3:32",
"is_local": false,
"is_macro": true,
"is_global": false,
"is_member": false,
"cls": 2,
"uses": ["1:9-1:12", "12:1-12:4"]
}]
}

View File

@ -35,10 +35,7 @@ OUTPUT:
"detailed_name": "int x",
"definition_spelling": "8:5-8:6",
"definition_extent": "8:1-8:10",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["8:5-8:6"]
}, {
"id": 1,
@ -48,10 +45,7 @@ OUTPUT:
"hover": "#define A 5",
"definition_spelling": "1:9-1:10",
"definition_extent": "1:9-1:12",
"is_local": false,
"is_macro": true,
"is_global": false,
"is_member": false,
"cls": 2,
"uses": ["1:9-1:10", "8:9-8:10"]
}, {
"id": 2,
@ -61,10 +55,7 @@ OUTPUT:
"hover": "#define DISALLOW(type) type(type&&) = delete;",
"definition_spelling": "2:9-2:17",
"definition_extent": "2:9-2:46",
"is_local": false,
"is_macro": true,
"is_global": false,
"is_member": false,
"cls": 2,
"uses": ["2:9-2:17", "5:3-5:11"]
}]
}

View File

@ -33,10 +33,7 @@ OUTPUT: funky_enum.h
"definition_extent": "4:1-4:2",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["4:1-4:2"]
}, {
"id": 1,
@ -47,10 +44,7 @@ OUTPUT: funky_enum.h
"definition_extent": "5:1-5:2",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["5:1-5:2"]
}, {
"id": 2,
@ -61,10 +55,7 @@ OUTPUT: funky_enum.h
"definition_extent": "6:1-6:2",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["6:1-6:2"]
}]
}

View File

@ -106,10 +106,7 @@ OUTPUT: header.h
"definition_extent": "15:13-15:14",
"variable_type": 4,
"declaring_type": 4,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["15:13-15:14"]
}, {
"id": 1,
@ -120,10 +117,7 @@ OUTPUT: header.h
"definition_extent": "15:16-15:17",
"variable_type": 4,
"declaring_type": 4,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["15:16-15:17"]
}, {
"id": 2,
@ -134,10 +128,7 @@ OUTPUT: header.h
"definition_extent": "15:19-15:20",
"variable_type": 4,
"declaring_type": 4,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["15:19-15:20"]
}, {
"id": 3,
@ -146,10 +137,7 @@ OUTPUT: header.h
"detailed_name": "int Foo4",
"definition_spelling": "17:5-17:9",
"definition_extent": "17:1-17:9",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["17:5-17:9"]
}, {
"id": 4,
@ -158,10 +146,7 @@ OUTPUT: header.h
"detailed_name": "int Foo5",
"definition_spelling": "18:12-18:16",
"definition_extent": "18:1-18:16",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["18:12-18:16"]
}]
}

View File

@ -41,10 +41,7 @@ OUTPUT:
"detailed_name": "int foo::bar::baz::qux",
"definition_spelling": "4:18-4:21",
"definition_extent": "4:14-4:26",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["4:18-4:21", "12:26-12:29", "13:16-13:19"]
}, {
"id": 1,
@ -53,10 +50,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "12:7-12:8",
"definition_extent": "12:3-12:29",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["12:7-12:8"]
}, {
"id": 2,
@ -65,10 +59,7 @@ OUTPUT:
"detailed_name": "int b",
"definition_spelling": "13:7-13:8",
"definition_extent": "13:3-13:19",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["13:7-13:8"]
}]
}

View File

@ -51,10 +51,7 @@ OUTPUT:
"detailed_name": "int ns::Foo",
"definition_spelling": "2:7-2:10",
"definition_extent": "2:3-2:10",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["2:7-2:10", "7:18-7:21", "9:10-9:13"]
}, {
"id": 1,
@ -63,10 +60,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "3:19-3:20",
"definition_extent": "3:15-3:20",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["3:19-3:20"]
}]
}

View File

@ -129,10 +129,7 @@ OUTPUT:
"short_name": "aProp",
"detailed_name": "int AClass::aProp",
"declaration": "4:29-4:34",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:29-4:34", "16:12-16:17"]
}, {
"id": 1,
@ -141,10 +138,7 @@ OUTPUT:
"detailed_name": "int AClass::_aProp",
"definition_spelling": "4:29-4:34",
"definition_extent": "4:29-4:34",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:29-4:34"]
}, {
"id": 2,
@ -153,10 +147,7 @@ OUTPUT:
"detailed_name": "AClass * instance",
"definition_spelling": "14:11-14:19",
"definition_extent": "14:3-14:35",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["14:11-14:19", "15:4-15:12", "16:3-16:11"]
}]
}

View File

@ -53,10 +53,7 @@ OUTPUT:
"definition_spelling": "4:7-4:8",
"definition_extent": "4:3-4:8",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["4:7-4:8"]
}, {
"id": 1,
@ -66,10 +63,7 @@ OUTPUT:
"definition_spelling": "5:7-5:8",
"definition_extent": "5:3-5:8",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["5:7-5:8"]
}, {
"id": 2,
@ -80,10 +74,7 @@ OUTPUT:
"definition_extent": "6:3-6:26",
"variable_type": 1,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["6:20-6:26"]
}]
}

View File

@ -95,10 +95,7 @@ OUTPUT:
"definition_extent": "7:3-7:24",
"variable_type": 1,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["7:15-7:24"]
}, {
"id": 1,
@ -109,10 +106,7 @@ OUTPUT:
"definition_extent": "8:3-8:23",
"variable_type": 1,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["8:15-8:23"]
}, {
"id": 2,
@ -123,10 +117,7 @@ OUTPUT:
"definition_extent": "9:3-9:32",
"variable_type": 2,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["9:28-9:32"]
}]
}

View File

@ -115,10 +115,7 @@ OUTPUT: static_function_in_type.cc
"definition_spelling": "5:29-5:30",
"definition_extent": "5:20-5:30",
"variable_type": 1,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["5:29-5:30"]
}]
}

View File

@ -18,10 +18,7 @@ OUTPUT:
"hover": "#define FOO",
"definition_spelling": "2:9-2:12",
"definition_extent": "2:9-2:12",
"is_local": false,
"is_macro": true,
"is_global": false,
"is_member": false,
"cls": 2,
"uses": ["2:9-2:12"]
}]
}

View File

@ -59,10 +59,7 @@ OUTPUT:
"definition_extent": "9:3-10:47",
"variable_type": 0,
"declaring_type": 1,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["6:30-6:40", "10:37-10:47", "13:26-13:36", "14:27-14:37"]
}, {
"id": 1,
@ -71,10 +68,7 @@ OUTPUT:
"detailed_name": "int ns::Foo",
"definition_spelling": "13:7-13:10",
"definition_extent": "13:3-13:36",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["13:7-13:10"]
}, {
"id": 2,
@ -83,10 +77,7 @@ OUTPUT:
"detailed_name": "int ns::Foo2",
"definition_spelling": "14:7-14:11",
"definition_extent": "14:3-14:37",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["14:7-14:11"]
}]
}

View File

@ -54,10 +54,7 @@ OUTPUT:
"detailed_name": "int ns::a",
"definition_spelling": "10:7-10:8",
"definition_extent": "10:3-10:33",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["10:7-10:8"]
}, {
"id": 1,
@ -66,10 +63,7 @@ OUTPUT:
"detailed_name": "int ns::b",
"definition_spelling": "11:7-11:8",
"definition_extent": "11:3-11:35",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["11:7-11:8"]
}]
}

View File

@ -35,10 +35,7 @@ OUTPUT:
"definition_spelling": "5:12-5:13",
"definition_extent": "5:3-5:13",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["5:12-5:13"]
}, {
"id": 1,
@ -48,10 +45,7 @@ OUTPUT:
"definition_spelling": "6:13-6:14",
"definition_extent": "6:3-6:14",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["6:13-6:14"]
}]
}

View File

@ -51,10 +51,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "8:5-8:6",
"definition_extent": "8:1-8:24",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["8:5-8:6"]
}, {
"id": 1,
@ -63,10 +60,7 @@ OUTPUT:
"detailed_name": "int b",
"definition_spelling": "9:5-9:6",
"definition_extent": "9:1-9:25",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["9:5-9:6"]
}]
}

View File

@ -52,10 +52,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "9:5-9:6",
"definition_extent": "9:1-9:31",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["9:5-9:6"]
}, {
"id": 1,
@ -64,10 +61,7 @@ OUTPUT:
"detailed_name": "int b",
"definition_spelling": "10:5-10:6",
"definition_extent": "10:1-10:33",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["10:5-10:6"]
}]
}

View File

@ -98,10 +98,7 @@ OUTPUT:
"definition_spelling": "9:15-9:16",
"definition_extent": "9:1-9:16",
"variable_type": 3,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["9:15-9:16"]
}, {
"id": 1,
@ -111,10 +108,7 @@ OUTPUT:
"definition_spelling": "10:15-10:16",
"definition_extent": "10:1-10:16",
"variable_type": 3,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["10:15-10:16"]
}]
}

View File

@ -33,10 +33,7 @@ OUTPUT:
"short_name": "var",
"detailed_name": "const int Foo::var",
"declaration": "3:24-3:27",
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["3:24-3:27", "6:19-6:22", "7:20-7:23"]
}, {
"id": 1,
@ -45,10 +42,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "6:5-6:6",
"definition_extent": "6:1-6:22",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["6:5-6:6"]
}, {
"id": 2,
@ -57,10 +51,7 @@ OUTPUT:
"detailed_name": "int b",
"definition_spelling": "7:5-7:6",
"definition_extent": "7:1-7:23",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["7:5-7:6"]
}]
}

View File

@ -37,10 +37,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "6:5-6:6",
"definition_extent": "6:1-6:19",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["6:5-6:6"]
}, {
"id": 1,
@ -49,10 +46,7 @@ OUTPUT:
"detailed_name": "int b",
"definition_spelling": "7:5-7:6",
"definition_extent": "7:1-7:20",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["7:5-7:6"]
}]
}

View File

@ -33,10 +33,7 @@ OUTPUT:
"definition_spelling": "4:10-4:11",
"definition_extent": "4:1-4:11",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["4:10-4:11"]
}, {
"id": 1,
@ -46,10 +43,7 @@ OUTPUT:
"definition_spelling": "5:11-5:12",
"definition_extent": "5:1-5:12",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["5:11-5:12"]
}]
}

View File

@ -84,10 +84,7 @@ OUTPUT:
"detailed_name": "T var",
"definition_spelling": "5:3-5:6",
"definition_extent": "5:1-5:12",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["5:3-5:6", "7:7-7:10", "8:7-8:10"]
}, {
"id": 1,
@ -97,10 +94,7 @@ OUTPUT:
"definition_spelling": "7:3-7:4",
"definition_extent": "7:1-7:13",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["7:3-7:4"]
}, {
"id": 2,
@ -110,10 +104,7 @@ OUTPUT:
"definition_spelling": "8:3-8:4",
"definition_extent": "8:1-8:13",
"variable_type": 1,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["8:3-8:4"]
}]
}

View File

@ -46,10 +46,7 @@ OUTPUT:
"definition_spelling": "2:18-2:19",
"definition_extent": "2:12-2:19",
"declaring_type": 1,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:18-2:19"]
}, {
"id": 1,
@ -59,10 +56,7 @@ OUTPUT:
"definition_spelling": "2:21-2:22",
"definition_extent": "2:12-2:22",
"declaring_type": 1,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:21-2:22"]
}, {
"id": 2,
@ -72,10 +66,7 @@ OUTPUT:
"definition_spelling": "2:24-2:25",
"definition_extent": "2:12-2:25",
"declaring_type": 1,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:24-2:25"]
}, {
"id": 3,
@ -85,10 +76,7 @@ OUTPUT:
"definition_spelling": "3:9-3:10",
"definition_extent": "3:3-3:13",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["3:9-3:10"]
}]
}

View File

@ -32,10 +32,7 @@ OUTPUT:
"definition_spelling": "2:7-2:8",
"definition_extent": "2:3-2:8",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:7-2:8"]
}, {
"id": 1,
@ -45,10 +42,7 @@ OUTPUT:
"definition_spelling": "3:8-3:9",
"definition_extent": "3:3-3:9",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["3:8-3:9"]
}]
}

View File

@ -54,10 +54,7 @@ OUTPUT:
"definition_spelling": "2:7-2:8",
"definition_extent": "2:3-2:12",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:7-2:8", "9:5-9:6"]
}, {
"id": 1,
@ -67,10 +64,7 @@ OUTPUT:
"definition_spelling": "3:8-3:9",
"definition_extent": "3:3-3:13",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["3:8-3:9"]
}, {
"id": 2,
@ -80,10 +74,7 @@ OUTPUT:
"definition_spelling": "6:5-6:6",
"definition_extent": "6:1-6:6",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["6:5-6:6", "9:3-9:4"]
}]
}

View File

@ -52,10 +52,7 @@ OUTPUT:
"hover": "#define MACRO_CALL(e) e",
"definition_spelling": "1:9-1:19",
"definition_extent": "1:9-1:24",
"is_local": false,
"is_macro": true,
"is_global": false,
"is_member": false,
"cls": 2,
"uses": ["1:9-1:19", "6:3-6:13"]
}]
}

View File

@ -63,10 +63,7 @@ OUTPUT:
"detailed_name": "void (*)() x",
"definition_spelling": "6:10-6:11",
"definition_extent": "6:3-6:22",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["6:10-6:11"]
}]
}

View File

@ -67,10 +67,7 @@ OUTPUT:
"detailed_name": "void (Foo::*)() x",
"definition_spelling": "6:8-6:9",
"definition_extent": "6:3-6:22",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["6:8-6:9"]
}]
}

View File

@ -68,10 +68,7 @@ OUTPUT:
"definition_spelling": "6:8-6:9",
"definition_extent": "6:3-6:19",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["6:8-6:9", "7:3-7:4"]
}]
}

View File

@ -49,10 +49,7 @@ OUTPUT:
"definition_spelling": "6:7-6:8",
"definition_extent": "6:3-6:19",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["6:7-6:8"]
}]
}

View File

@ -67,10 +67,7 @@ OUTPUT:
"definition_spelling": "6:8-6:9",
"definition_extent": "6:3-6:19",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["6:8-6:9", "7:3-7:4"]
}]
}

View File

@ -67,10 +67,7 @@ OUTPUT:
"definition_spelling": "6:25-6:27",
"definition_extent": "6:1-6:27",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["6:25-6:27"]
}, {
"id": 1,
@ -80,10 +77,7 @@ OUTPUT:
"definition_spelling": "7:22-7:24",
"definition_extent": "7:1-7:24",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["7:22-7:24"]
}, {
"id": 2,
@ -93,10 +87,7 @@ OUTPUT:
"definition_spelling": "10:18-10:23",
"definition_extent": "10:3-10:23",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["10:18-10:23"]
}]
}

View File

@ -204,10 +204,7 @@ OUTPUT:
"detailed_name": "unique_ptr<unique_ptr<S1, S2>, S2> f",
"declaration": "15:43-15:44",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["15:43-15:44"]
}, {
"id": 1,
@ -217,10 +214,7 @@ OUTPUT:
"definition_spelling": "54:39-54:44",
"definition_extent": "54:3-54:44",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["54:39-54:44"]
}]
}

View File

@ -46,10 +46,7 @@ OUTPUT:
"definition_spelling": "6:22-6:25",
"definition_extent": "6:1-6:25",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["6:22-6:25"]
}]
}

View File

@ -29,10 +29,7 @@ OUTPUT:
"detailed_name": "T t",
"declaration": "3:10-3:11",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["3:10-3:11"]
}]
}

View File

@ -62,10 +62,7 @@ OUTPUT:
"definition_extent": "5:3-5:17",
"variable_type": 0,
"declaring_type": 2,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["5:16-5:17"]
}, {
"id": 1,
@ -76,10 +73,7 @@ OUTPUT:
"definition_extent": "6:3-6:20",
"variable_type": 1,
"declaring_type": 2,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["6:19-6:20"]
}]
}

View File

@ -61,10 +61,7 @@ OUTPUT:
"definition_spelling": "5:16-5:17",
"definition_extent": "5:3-5:17",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["5:16-5:17"]
}, {
"id": 1,
@ -74,10 +71,7 @@ OUTPUT:
"definition_spelling": "6:19-6:20",
"definition_extent": "6:3-6:20",
"variable_type": 1,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["6:19-6:20"]
}]
}

View File

@ -58,10 +58,7 @@ OUTPUT:
"definition_spelling": "4:23-4:24",
"definition_extent": "4:10-4:24",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:23-4:24"]
}, {
"id": 1,
@ -71,10 +68,7 @@ OUTPUT:
"definition_spelling": "4:42-4:43",
"definition_extent": "4:26-4:43",
"variable_type": 1,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:42-4:43"]
}]
}

View File

@ -54,10 +54,7 @@ OUTPUT:
"definition_spelling": "4:15-4:16",
"definition_extent": "4:10-4:16",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:15-4:16"]
}]
}

View File

@ -49,10 +49,7 @@ OUTPUT:
"definition_spelling": "3:16-3:18",
"definition_extent": "3:10-3:18",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["3:16-3:18"]
}, {
"id": 1,
@ -62,10 +59,7 @@ OUTPUT:
"definition_spelling": "3:32-3:34",
"definition_extent": "3:20-3:34",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["3:32-3:34"]
}, {
"id": 2,
@ -75,10 +69,7 @@ OUTPUT:
"definition_spelling": "4:8-4:10",
"definition_extent": "4:3-4:10",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:8-4:10"]
}, {
"id": 3,
@ -88,10 +79,7 @@ OUTPUT:
"definition_spelling": "5:9-5:11",
"definition_extent": "5:3-5:11",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["5:9-5:11"]
}, {
"id": 4,
@ -101,10 +89,7 @@ OUTPUT:
"definition_spelling": "6:15-6:17",
"definition_extent": "6:3-6:17",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["6:15-6:17"]
}, {
"id": 5,
@ -114,10 +99,7 @@ OUTPUT:
"definition_spelling": "7:21-7:23",
"definition_extent": "7:3-7:33",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["7:21-7:23"]
}]
}

View File

@ -29,10 +29,7 @@ OUTPUT:
"definition_spelling": "2:13-2:14",
"definition_extent": "2:1-2:14",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["2:13-2:14"]
}]
}

View File

@ -58,10 +58,7 @@ OUTPUT:
"definition_spelling": "6:7-6:8",
"definition_extent": "6:3-6:8",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["6:7-6:8"]
}, {
"id": 1,
@ -70,10 +67,7 @@ OUTPUT:
"detailed_name": "Foo foo",
"declaration": "10:12-10:15",
"variable_type": 0,
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["10:12-10:15"]
}]
}

View File

@ -92,10 +92,7 @@ OUTPUT:
"definition_spelling": "10:10-10:20",
"definition_extent": "10:1-10:24",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["6:14-6:24", "10:10-10:20", "14:45-14:55"]
}, {
"id": 1,
@ -105,10 +102,7 @@ OUTPUT:
"definition_spelling": "7:7-7:16",
"definition_extent": "7:3-7:16",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["7:7-7:16", "14:28-14:37"]
}, {
"id": 2,
@ -117,10 +111,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "13:7-13:8",
"definition_extent": "13:3-13:12",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["13:7-13:8", "14:10-14:11"]
}]
}

View File

@ -49,10 +49,7 @@ OUTPUT:
"detailed_name": "void (*)() x",
"definition_spelling": "4:8-4:9",
"definition_extent": "4:3-4:19",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:8-4:9", "5:3-5:4"]
}]
}

View File

@ -94,10 +94,7 @@ OUTPUT:
"definition_spelling": "3:7-3:8",
"definition_extent": "3:3-3:8",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["3:7-3:8", "12:5-12:6", "13:5-13:6", "14:12-14:13", "15:12-15:13", "16:13-16:14"]
}, {
"id": 1,
@ -107,10 +104,7 @@ OUTPUT:
"definition_spelling": "4:7-4:8",
"definition_extent": "4:3-4:8",
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["4:7-4:8", "17:12-17:13"]
}, {
"id": 2,
@ -120,10 +114,7 @@ OUTPUT:
"definition_spelling": "11:7-11:8",
"definition_extent": "11:3-11:8",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["11:7-11:8", "12:3-12:4", "13:3-13:4", "14:10-14:11", "15:10-15:11", "16:11-16:12", "17:10-17:11"]
}]
}

View File

@ -66,10 +66,7 @@ OUTPUT:
"short_name": "x",
"detailed_name": "int Foo::x",
"declaration": "2:14-2:15",
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:14-2:15", "8:15-8:16"]
}]
}

View File

@ -52,10 +52,7 @@ OUTPUT:
"definition_extent": "7:1-7:33",
"variable_type": 0,
"declaring_type": 1,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["4:28-4:38", "7:23-7:33"]
}]
}

View File

@ -30,10 +30,7 @@ OUTPUT:
"short_name": "a",
"detailed_name": "int a",
"declaration": "1:12-1:13",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["1:12-1:13", "4:3-4:4"]
}]
}

View File

@ -29,10 +29,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "1:14-1:15",
"definition_extent": "1:10-1:15",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["1:14-1:15", "2:3-2:4"]
}]
}

View File

@ -30,10 +30,7 @@ OUTPUT:
"detailed_name": "int x",
"definition_spelling": "2:7-2:8",
"definition_extent": "2:3-2:8",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["2:7-2:8", "3:3-3:4"]
}]
}

View File

@ -35,10 +35,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "2:7-2:8",
"definition_extent": "2:3-2:8",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["2:7-2:8", "3:3-3:4", "8:3-8:4"]
}, {
"id": 1,
@ -47,10 +44,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "5:9-5:10",
"definition_extent": "5:5-5:10",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["5:9-5:10", "6:5-6:6"]
}]
}

View File

@ -35,10 +35,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "1:14-1:15",
"definition_extent": "1:10-1:15",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["1:14-1:15", "2:3-2:4", "7:3-7:4"]
}, {
"id": 1,
@ -47,10 +44,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "4:9-4:10",
"definition_extent": "4:5-4:10",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:9-4:10", "5:5-5:6"]
}]
}

View File

@ -32,10 +32,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "1:12-1:13",
"definition_extent": "1:1-1:13",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["1:12-1:13", "4:3-4:4"]
}]
}

View File

@ -31,10 +31,7 @@ OUTPUT:
"definition_extent": "2:3-2:14",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:8-2:14"]
}]
}

View File

@ -34,10 +34,7 @@ OUTPUT:
"definition_extent": "4:1-4:27",
"variable_type": 0,
"declaring_type": 0,
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:15-2:21", "4:11-4:17"]
}]
}

View File

@ -28,10 +28,7 @@ OUTPUT:
"short_name": "member",
"detailed_name": "int Foo::member",
"declaration": "2:14-2:20",
"is_local": false,
"is_macro": false,
"is_global": false,
"is_member": true,
"cls": 4,
"uses": ["2:14-2:20"]
}]
}

View File

@ -47,10 +47,7 @@ OUTPUT:
"definition_spelling": "3:8-3:9",
"definition_extent": "3:3-3:21",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["3:8-3:9"]
}, {
"id": 1,
@ -60,10 +57,7 @@ OUTPUT:
"definition_spelling": "4:9-4:10",
"definition_extent": "4:3-4:22",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:9-4:10"]
}]
}

View File

@ -45,10 +45,7 @@ OUTPUT:
"definition_spelling": "4:8-4:9",
"definition_extent": "4:3-4:9",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:8-4:9"]
}]
}

View File

@ -43,10 +43,7 @@ OUTPUT:
"definition_spelling": "3:15-3:17",
"definition_extent": "3:10-3:17",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["3:15-3:17"]
}, {
"id": 1,
@ -56,10 +53,7 @@ OUTPUT:
"definition_spelling": "3:24-3:26",
"definition_extent": "3:19-3:26",
"variable_type": 0,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["3:24-3:26"]
}]
}

View File

@ -35,10 +35,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "2:7-2:8",
"definition_extent": "2:3-2:8",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["2:7-2:8", "3:3-3:4", "8:3-8:4"]
}, {
"id": 1,
@ -47,10 +44,7 @@ OUTPUT:
"detailed_name": "int a",
"definition_spelling": "5:9-5:10",
"definition_extent": "5:5-5:10",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["5:9-5:10", "6:5-6:6"]
}]
}

View File

@ -29,10 +29,7 @@ OUTPUT:
"detailed_name": "int p",
"definition_spelling": "1:14-1:15",
"definition_extent": "1:10-1:15",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["1:14-1:15"]
}, {
"id": 1,
@ -41,10 +38,7 @@ OUTPUT:
"detailed_name": "int p",
"definition_spelling": "2:9-2:10",
"definition_extent": "2:5-2:14",
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["2:9-2:10"]
}]
}

View File

@ -13,10 +13,7 @@ OUTPUT:
"detailed_name": "int global",
"definition_spelling": "1:12-1:18",
"definition_extent": "1:1-1:22",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["1:12-1:18"]
}]
}

View File

@ -12,10 +12,7 @@ OUTPUT:
"short_name": "global",
"detailed_name": "int global",
"declaration": "1:12-1:18",
"is_local": false,
"is_macro": false,
"is_global": true,
"is_member": false,
"cls": 3,
"uses": ["1:12-1:18"]
}]
}

View File

@ -65,10 +65,7 @@ OUTPUT:
"definition_spelling": "4:5-4:6",
"definition_extent": "4:3-4:6",
"variable_type": 1,
"is_local": true,
"is_macro": false,
"is_global": false,
"is_member": false,
"cls": 1,
"uses": ["4:5-4:6"]
}]
}