mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Change var.def.is_* to enum.
This commit is contained in:
parent
f6d84cd68c
commit
cb7ccbe543
@ -951,8 +951,7 @@ ClangCursor::VisitResult VisitMacroDefinitionAndExpansions(ClangCursor cursor,
|
|||||||
var_def->def.detailed_name = cursor.get_display_name();
|
var_def->def.detailed_name = cursor.get_display_name();
|
||||||
var_def->def.hover =
|
var_def->def.hover =
|
||||||
"#define " + GetDocumentContentInRange(param->tu->cx_tu, cx_extent);
|
"#define " + GetDocumentContentInRange(param->tu->cx_tu, cx_extent);
|
||||||
var_def->def.is_local = false;
|
var_def->def.cls = VarClass::Macro;
|
||||||
var_def->def.is_macro = true;
|
|
||||||
var_def->def.definition_spelling = decl_loc_spelling;
|
var_def->def.definition_spelling = decl_loc_spelling;
|
||||||
var_def->def.definition_extent = Resolve(cx_extent, nullptr);
|
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(
|
bool is_system = clang_Location_isInSystemHeader(
|
||||||
clang_indexLoc_getCXSourceLocation(decl->loc));
|
clang_indexLoc_getCXSourceLocation(decl->loc));
|
||||||
var->def.is_global =
|
if (is_system)
|
||||||
!is_system && IsGlobalContainer(decl->semanticContainer);
|
var->def.cls = VarClass::Unknown;
|
||||||
var->def.is_member =
|
else {
|
||||||
!is_system && IsTypeDefinition(decl->semanticContainer);
|
if (IsGlobalContainer(decl->semanticContainer))
|
||||||
var->def.is_local =
|
var->def.cls = VarClass::Global;
|
||||||
!is_system && !var->def.is_global && !var->def.is_member;
|
else if (IsTypeDefinition(decl->semanticContainer))
|
||||||
|
var->def.cls = VarClass::Member;
|
||||||
|
else
|
||||||
|
var->def.cls = VarClass::Local;
|
||||||
|
}
|
||||||
//}
|
//}
|
||||||
|
|
||||||
if (decl->isDefinition) {
|
if (decl->isDefinition) {
|
||||||
@ -1491,8 +1493,7 @@ void OnIndexReference(CXClientData client_data, const CXIdxEntityRefInfo* ref) {
|
|||||||
std::string type_name = ToString(
|
std::string type_name = ToString(
|
||||||
clang_getTypeSpelling(clang_getCursorType(referenced.cx_cursor)));
|
clang_getTypeSpelling(clang_getCursorType(referenced.cx_cursor)));
|
||||||
var->def.detailed_name = type_name + " " + var->def.short_name;
|
var->def.detailed_name = type_name + " " + var->def.short_name;
|
||||||
var->def.is_local = false;
|
var->def.cls = VarClass::Member;
|
||||||
var->def.is_member = true;
|
|
||||||
UniqueAdd(var->uses, ResolveSpelling(referenced.cx_cursor));
|
UniqueAdd(var->uses, ResolveSpelling(referenced.cx_cursor));
|
||||||
AddDeclInitializerUsages(db, referenced.cx_cursor);
|
AddDeclInitializerUsages(db, referenced.cx_cursor);
|
||||||
// TODO Use proper semantic_container and lexical_container.
|
// TODO Use proper semantic_container and lexical_container.
|
||||||
|
@ -355,6 +355,20 @@ MAKE_REFLECT_STRUCT(IndexFunc::Declaration,
|
|||||||
content,
|
content,
|
||||||
param_spellings);
|
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>
|
template <typename TypeId, typename FuncId, typename VarId, typename Range>
|
||||||
struct VarDefDefinitionData {
|
struct VarDefDefinitionData {
|
||||||
// General metadata.
|
// General metadata.
|
||||||
@ -373,14 +387,10 @@ struct VarDefDefinitionData {
|
|||||||
// Type which declares this one.
|
// Type which declares this one.
|
||||||
optional<TypeId> declaring_type;
|
optional<TypeId> declaring_type;
|
||||||
|
|
||||||
// Is this a parameter or function variable?
|
VarClass cls;
|
||||||
bool is_local = false;
|
|
||||||
// Is this a macro, ie, #define FOO?
|
bool is_local() const { return cls == VarClass::Local; }
|
||||||
bool is_macro = false;
|
bool is_macro() const { return cls == VarClass::Macro; }
|
||||||
// Is this a global variable?
|
|
||||||
bool is_global = false;
|
|
||||||
// Is this a member variable of struct/union/class/enum?
|
|
||||||
bool is_member = false;
|
|
||||||
|
|
||||||
bool operator==(
|
bool operator==(
|
||||||
const VarDefDefinitionData<TypeId, FuncId, VarId, Range>& other) const {
|
const VarDefDefinitionData<TypeId, FuncId, VarId, Range>& other) const {
|
||||||
@ -413,10 +423,7 @@ void Reflect(TVisitor& visitor,
|
|||||||
REFLECT_MEMBER(definition_extent);
|
REFLECT_MEMBER(definition_extent);
|
||||||
REFLECT_MEMBER(variable_type);
|
REFLECT_MEMBER(variable_type);
|
||||||
REFLECT_MEMBER(declaring_type);
|
REFLECT_MEMBER(declaring_type);
|
||||||
REFLECT_MEMBER(is_local);
|
REFLECT_MEMBER(cls);
|
||||||
REFLECT_MEMBER(is_macro);
|
|
||||||
REFLECT_MEMBER(is_global);
|
|
||||||
REFLECT_MEMBER(is_member);
|
|
||||||
REFLECT_MEMBER_END();
|
REFLECT_MEMBER_END();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -557,4 +564,4 @@ void IndexInit();
|
|||||||
|
|
||||||
void ClangSanityCheck();
|
void ClangSanityCheck();
|
||||||
|
|
||||||
std::string GetClangVersion();
|
std::string GetClangVersion();
|
||||||
|
@ -106,8 +106,14 @@ void EmitSemanticHighlighting(QueryDatabase* db,
|
|||||||
QueryVar* var = &db->vars[sym.idx.idx];
|
QueryVar* var = &db->vars[sym.idx.idx];
|
||||||
if (!var->def)
|
if (!var->def)
|
||||||
continue; // applies to for loop
|
continue; // applies to for loop
|
||||||
if (!var->def->is_local && !var->def->is_global && !var->def->is_member)
|
switch (var->def->cls) {
|
||||||
continue; // applies to for loop
|
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();
|
is_type_member = var->def->declaring_type.has_value();
|
||||||
detailed_name = var->def->short_name;
|
detailed_name = var->def->short_name;
|
||||||
break;
|
break;
|
||||||
|
@ -236,13 +236,13 @@ struct TextDocumentCodeLensHandler
|
|||||||
if (!var.def)
|
if (!var.def)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (var.def->is_local && !config->codeLensOnLocalVariables)
|
if (var.def->is_local() && !config->codeLensOnLocalVariables)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
bool force_display = true;
|
bool force_display = true;
|
||||||
// Do not show 0 refs on macro with no uses, as it is most likely
|
// Do not show 0 refs on macro with no uses, as it is most likely
|
||||||
// a header guard.
|
// a header guard.
|
||||||
if (var.def->is_macro)
|
if (var.def->is_macro())
|
||||||
force_display = false;
|
force_display = false;
|
||||||
|
|
||||||
AddCodeLens("ref", "refs", &common, ref.loc.OffsetStartColumn(0),
|
AddCodeLens("ref", "refs", &common, ref.loc.OffsetStartColumn(0),
|
||||||
|
@ -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.definition_extent = id_map.ToQuery(var.definition_extent);
|
||||||
result.variable_type = id_map.ToQuery(var.variable_type);
|
result.variable_type = id_map.ToQuery(var.variable_type);
|
||||||
result.declaring_type = id_map.ToQuery(var.declaring_type);
|
result.declaring_type = id_map.ToQuery(var.declaring_type);
|
||||||
result.is_local = var.is_local;
|
result.cls = var.cls;
|
||||||
result.is_macro = var.is_macro;
|
|
||||||
result.is_global = var.is_global;
|
|
||||||
result.is_member = var.is_member;
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -828,7 +825,7 @@ void QueryDatabase::ImportOrUpdate(
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
existing.def = def.value;
|
existing.def = def.value;
|
||||||
if (!def.value.is_local)
|
if (!def.value.is_local())
|
||||||
UpdateDetailedNames(&existing.detailed_name_idx, SymbolKind::Var,
|
UpdateDetailedNames(&existing.detailed_name_idx, SymbolKind::Var,
|
||||||
it->second.id, def.value.detailed_name);
|
it->second.id, def.value.detailed_name);
|
||||||
}
|
}
|
||||||
|
@ -147,10 +147,7 @@ void Reflect(TVisitor& visitor, IndexVar& value) {
|
|||||||
REFLECT_MEMBER2("definition_extent", value.def.definition_extent);
|
REFLECT_MEMBER2("definition_extent", value.def.definition_extent);
|
||||||
REFLECT_MEMBER2("variable_type", value.def.variable_type);
|
REFLECT_MEMBER2("variable_type", value.def.variable_type);
|
||||||
REFLECT_MEMBER2("declaring_type", value.def.declaring_type);
|
REFLECT_MEMBER2("declaring_type", value.def.declaring_type);
|
||||||
REFLECT_MEMBER2("is_local", value.def.is_local);
|
REFLECT_MEMBER2("cls", value.def.cls);
|
||||||
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("uses", value.uses);
|
REFLECT_MEMBER2("uses", value.uses);
|
||||||
REFLECT_MEMBER_END();
|
REFLECT_MEMBER_END();
|
||||||
}
|
}
|
||||||
|
@ -66,10 +66,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "7:7-7:8",
|
"definition_spelling": "7:7-7:8",
|
||||||
"definition_extent": "7:3-7:8",
|
"definition_extent": "7:3-7:8",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["7:7-7:8"]
|
"uses": ["7:7-7:8"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -79,10 +76,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "8:8-8:10",
|
"definition_spelling": "8:8-8:10",
|
||||||
"definition_extent": "8:3-8:22",
|
"definition_extent": "8:3-8:22",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["8:8-8:10"]
|
"uses": ["8:8-8:10"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -86,10 +86,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "8:7-8:8",
|
"definition_spelling": "8:7-8:8",
|
||||||
"definition_extent": "8:3-8:8",
|
"definition_extent": "8:3-8:8",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["8:7-8:8"]
|
"uses": ["8:7-8:8"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -65,10 +65,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:8-6:12",
|
"definition_spelling": "6:8-6:12",
|
||||||
"definition_extent": "6:3-6:12",
|
"definition_extent": "6:3-6:12",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:8-6:12"]
|
"uses": ["6:8-6:12"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -78,10 +75,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "7:8-7:12",
|
"definition_spelling": "7:8-7:12",
|
||||||
"definition_extent": "7:3-7:21",
|
"definition_extent": "7:3-7:21",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["7:8-7:12"]
|
"uses": ["7:8-7:12"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -298,10 +298,7 @@ OUTPUT: make_functions.cc
|
|||||||
"detailed_name": "Args &&... args",
|
"detailed_name": "Args &&... args",
|
||||||
"definition_spelling": "4:25-4:29",
|
"definition_spelling": "4:25-4:29",
|
||||||
"definition_extent": "4:15-4:29",
|
"definition_extent": "4:15-4:29",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:25-4:29"]
|
"uses": ["4:25-4:29"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -310,10 +307,7 @@ OUTPUT: make_functions.cc
|
|||||||
"detailed_name": "Args... args",
|
"detailed_name": "Args... args",
|
||||||
"definition_spelling": "9:24-9:28",
|
"definition_spelling": "9:24-9:28",
|
||||||
"definition_extent": "9:16-9:28",
|
"definition_extent": "9:16-9:28",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["9:24-9:28"]
|
"uses": ["9:24-9:28"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -31,10 +31,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "2:7-2:10",
|
"definition_spelling": "2:7-2:10",
|
||||||
"definition_extent": "2:3-2:10",
|
"definition_extent": "2:3-2:10",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:7-2:10"]
|
"uses": ["2:7-2:10"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -34,10 +34,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "5:10-5:13",
|
"definition_spelling": "5:10-5:13",
|
||||||
"definition_extent": "5:1-5:13",
|
"definition_extent": "5:1-5:13",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:14-2:17", "5:10-5:13"]
|
"uses": ["2:14-2:17", "5:10-5:13"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -47,10 +47,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "5:13-5:14",
|
"definition_spelling": "5:13-5:14",
|
||||||
"definition_extent": "5:9-5:14",
|
"definition_extent": "5:9-5:14",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:13-5:14"]
|
"uses": ["5:13-5:14"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -59,10 +56,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int b",
|
"detailed_name": "int b",
|
||||||
"definition_spelling": "5:20-5:21",
|
"definition_spelling": "5:20-5:21",
|
||||||
"definition_extent": "5:16-5:21",
|
"definition_extent": "5:16-5:21",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:20-5:21"]
|
"uses": ["5:20-5:21"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,7 @@ OUTPUT:
|
|||||||
"definition_extent": "2:3-2:4",
|
"definition_extent": "2:3-2:4",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:3-2:4"]
|
"uses": ["2:3-2:4"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -47,10 +44,7 @@ OUTPUT:
|
|||||||
"definition_extent": "3:3-3:9",
|
"definition_extent": "3:3-3:9",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["3:3-3:4"]
|
"uses": ["3:3-3:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,7 @@ OUTPUT:
|
|||||||
"definition_extent": "2:3-2:4",
|
"definition_extent": "2:3-2:4",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:3-2:4"]
|
"uses": ["2:3-2:4"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -47,10 +44,7 @@ OUTPUT:
|
|||||||
"definition_extent": "3:3-3:9",
|
"definition_extent": "3:3-3:9",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["3:3-3:4"]
|
"uses": ["3:3-3:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,7 @@ OUTPUT:
|
|||||||
"definition_extent": "2:3-2:4",
|
"definition_extent": "2:3-2:4",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:3-2:4"]
|
"uses": ["2:3-2:4"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -47,10 +44,7 @@ OUTPUT:
|
|||||||
"definition_extent": "3:3-3:9",
|
"definition_extent": "3:3-3:9",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["3:3-3:4"]
|
"uses": ["3:3-3:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -35,10 +35,7 @@ OUTPUT:
|
|||||||
"definition_extent": "2:3-2:4",
|
"definition_extent": "2:3-2:4",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:3-2:4", "6:14-6:15"]
|
"uses": ["2:3-2:4", "6:14-6:15"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -49,10 +46,7 @@ OUTPUT:
|
|||||||
"definition_extent": "3:3-3:9",
|
"definition_extent": "3:3-3:9",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["3:3-3:4"]
|
"uses": ["3:3-3:4"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -62,10 +56,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:5-6:6",
|
"definition_spelling": "6:5-6:6",
|
||||||
"definition_extent": "6:1-6:15",
|
"definition_extent": "6:1-6:15",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:5-6:6"]
|
"uses": ["6:5-6:6"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -79,10 +79,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "9:15-9:16",
|
"definition_spelling": "9:15-9:16",
|
||||||
"definition_extent": "9:1-9:16",
|
"definition_extent": "9:1-9:16",
|
||||||
"variable_type": 3,
|
"variable_type": 3,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["9:15-9:16"]
|
"uses": ["9:15-9:16"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -92,10 +89,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "10:8-10:9",
|
"definition_spelling": "10:8-10:9",
|
||||||
"definition_extent": "10:1-10:9",
|
"definition_extent": "10:1-10:9",
|
||||||
"variable_type": 2,
|
"variable_type": 2,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["10:8-10:9"]
|
"uses": ["10:8-10:9"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -63,10 +63,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int x",
|
"detailed_name": "int x",
|
||||||
"definition_spelling": "2:7-2:8",
|
"definition_spelling": "2:7-2:8",
|
||||||
"definition_extent": "2:3-2:8",
|
"definition_extent": "2:3-2:8",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["2:7-2:8", "5:7-5:8", "4:24-4:25"]
|
"uses": ["2:7-2:8", "5:7-5:8", "4:24-4:25"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -76,10 +73,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:8-4:19",
|
"definition_spelling": "4:8-4:19",
|
||||||
"definition_extent": "4:3-7:4",
|
"definition_extent": "4:3-7:4",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:8-4:19", "9:3-9:14", "10:3-10:14", "11:3-11:14"]
|
"uses": ["4:8-4:19", "9:3-9:14", "10:3-10:14", "11:3-11:14"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -88,10 +82,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int y",
|
"detailed_name": "int y",
|
||||||
"definition_spelling": "4:31-4:32",
|
"definition_spelling": "4:31-4:32",
|
||||||
"definition_extent": "4:27-4:32",
|
"definition_extent": "4:27-4:32",
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["4:31-4:32", "6:7-6:8"]
|
"uses": ["4:31-4:32", "6:7-6:8"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -58,10 +58,7 @@ OUTPUT:
|
|||||||
"detailed_name": "const int make2",
|
"detailed_name": "const int make2",
|
||||||
"definition_spelling": "9:11-9:16",
|
"definition_spelling": "9:11-9:16",
|
||||||
"definition_extent": "9:1-9:20",
|
"definition_extent": "9:1-9:20",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["9:11-9:16", "12:14-12:19"]
|
"uses": ["9:11-9:16", "12:14-12:19"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -71,10 +68,7 @@ OUTPUT:
|
|||||||
"hover": "#define FOO(aaa, bbb)\n int a();\n int a() { return aaa + bbb; }",
|
"hover": "#define FOO(aaa, bbb)\n int a();\n int a() { return aaa + bbb; }",
|
||||||
"definition_spelling": "1:9-1:12",
|
"definition_spelling": "1:9-1:12",
|
||||||
"definition_extent": "1:9-3:32",
|
"definition_extent": "1:9-3:32",
|
||||||
"is_local": false,
|
"cls": 2,
|
||||||
"is_macro": true,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:9-1:12", "12:1-12:4"]
|
"uses": ["1:9-1:12", "12:1-12:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -35,10 +35,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int x",
|
"detailed_name": "int x",
|
||||||
"definition_spelling": "8:5-8:6",
|
"definition_spelling": "8:5-8:6",
|
||||||
"definition_extent": "8:1-8:10",
|
"definition_extent": "8:1-8:10",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["8:5-8:6"]
|
"uses": ["8:5-8:6"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -48,10 +45,7 @@ OUTPUT:
|
|||||||
"hover": "#define A 5",
|
"hover": "#define A 5",
|
||||||
"definition_spelling": "1:9-1:10",
|
"definition_spelling": "1:9-1:10",
|
||||||
"definition_extent": "1:9-1:12",
|
"definition_extent": "1:9-1:12",
|
||||||
"is_local": false,
|
"cls": 2,
|
||||||
"is_macro": true,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:9-1:10", "8:9-8:10"]
|
"uses": ["1:9-1:10", "8:9-8:10"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -61,10 +55,7 @@ OUTPUT:
|
|||||||
"hover": "#define DISALLOW(type) type(type&&) = delete;",
|
"hover": "#define DISALLOW(type) type(type&&) = delete;",
|
||||||
"definition_spelling": "2:9-2:17",
|
"definition_spelling": "2:9-2:17",
|
||||||
"definition_extent": "2:9-2:46",
|
"definition_extent": "2:9-2:46",
|
||||||
"is_local": false,
|
"cls": 2,
|
||||||
"is_macro": true,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["2:9-2:17", "5:3-5:11"]
|
"uses": ["2:9-2:17", "5:3-5:11"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,7 @@ OUTPUT: funky_enum.h
|
|||||||
"definition_extent": "4:1-4:2",
|
"definition_extent": "4:1-4:2",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["4:1-4:2"]
|
"uses": ["4:1-4:2"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -47,10 +44,7 @@ OUTPUT: funky_enum.h
|
|||||||
"definition_extent": "5:1-5:2",
|
"definition_extent": "5:1-5:2",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["5:1-5:2"]
|
"uses": ["5:1-5:2"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -61,10 +55,7 @@ OUTPUT: funky_enum.h
|
|||||||
"definition_extent": "6:1-6:2",
|
"definition_extent": "6:1-6:2",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["6:1-6:2"]
|
"uses": ["6:1-6:2"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -106,10 +106,7 @@ OUTPUT: header.h
|
|||||||
"definition_extent": "15:13-15:14",
|
"definition_extent": "15:13-15:14",
|
||||||
"variable_type": 4,
|
"variable_type": 4,
|
||||||
"declaring_type": 4,
|
"declaring_type": 4,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["15:13-15:14"]
|
"uses": ["15:13-15:14"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -120,10 +117,7 @@ OUTPUT: header.h
|
|||||||
"definition_extent": "15:16-15:17",
|
"definition_extent": "15:16-15:17",
|
||||||
"variable_type": 4,
|
"variable_type": 4,
|
||||||
"declaring_type": 4,
|
"declaring_type": 4,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["15:16-15:17"]
|
"uses": ["15:16-15:17"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -134,10 +128,7 @@ OUTPUT: header.h
|
|||||||
"definition_extent": "15:19-15:20",
|
"definition_extent": "15:19-15:20",
|
||||||
"variable_type": 4,
|
"variable_type": 4,
|
||||||
"declaring_type": 4,
|
"declaring_type": 4,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["15:19-15:20"]
|
"uses": ["15:19-15:20"]
|
||||||
}, {
|
}, {
|
||||||
"id": 3,
|
"id": 3,
|
||||||
@ -146,10 +137,7 @@ OUTPUT: header.h
|
|||||||
"detailed_name": "int Foo4",
|
"detailed_name": "int Foo4",
|
||||||
"definition_spelling": "17:5-17:9",
|
"definition_spelling": "17:5-17:9",
|
||||||
"definition_extent": "17:1-17:9",
|
"definition_extent": "17:1-17:9",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["17:5-17:9"]
|
"uses": ["17:5-17:9"]
|
||||||
}, {
|
}, {
|
||||||
"id": 4,
|
"id": 4,
|
||||||
@ -158,10 +146,7 @@ OUTPUT: header.h
|
|||||||
"detailed_name": "int Foo5",
|
"detailed_name": "int Foo5",
|
||||||
"definition_spelling": "18:12-18:16",
|
"definition_spelling": "18:12-18:16",
|
||||||
"definition_extent": "18:1-18:16",
|
"definition_extent": "18:1-18:16",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["18:12-18:16"]
|
"uses": ["18:12-18:16"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -41,10 +41,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int foo::bar::baz::qux",
|
"detailed_name": "int foo::bar::baz::qux",
|
||||||
"definition_spelling": "4:18-4:21",
|
"definition_spelling": "4:18-4:21",
|
||||||
"definition_extent": "4:14-4:26",
|
"definition_extent": "4:14-4:26",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:18-4:21", "12:26-12:29", "13:16-13:19"]
|
"uses": ["4:18-4:21", "12:26-12:29", "13:16-13:19"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -53,10 +50,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "12:7-12:8",
|
"definition_spelling": "12:7-12:8",
|
||||||
"definition_extent": "12:3-12:29",
|
"definition_extent": "12:3-12:29",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["12:7-12:8"]
|
"uses": ["12:7-12:8"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -65,10 +59,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int b",
|
"detailed_name": "int b",
|
||||||
"definition_spelling": "13:7-13:8",
|
"definition_spelling": "13:7-13:8",
|
||||||
"definition_extent": "13:3-13:19",
|
"definition_extent": "13:3-13:19",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["13:7-13:8"]
|
"uses": ["13:7-13:8"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -51,10 +51,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int ns::Foo",
|
"detailed_name": "int ns::Foo",
|
||||||
"definition_spelling": "2:7-2:10",
|
"definition_spelling": "2:7-2:10",
|
||||||
"definition_extent": "2:3-2:10",
|
"definition_extent": "2:3-2:10",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["2:7-2:10", "7:18-7:21", "9:10-9:13"]
|
"uses": ["2:7-2:10", "7:18-7:21", "9:10-9:13"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -63,10 +60,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "3:19-3:20",
|
"definition_spelling": "3:19-3:20",
|
||||||
"definition_extent": "3:15-3:20",
|
"definition_extent": "3:15-3:20",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["3:19-3:20"]
|
"uses": ["3:19-3:20"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -129,10 +129,7 @@ OUTPUT:
|
|||||||
"short_name": "aProp",
|
"short_name": "aProp",
|
||||||
"detailed_name": "int AClass::aProp",
|
"detailed_name": "int AClass::aProp",
|
||||||
"declaration": "4:29-4:34",
|
"declaration": "4:29-4:34",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:29-4:34", "16:12-16:17"]
|
"uses": ["4:29-4:34", "16:12-16:17"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -141,10 +138,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int AClass::_aProp",
|
"detailed_name": "int AClass::_aProp",
|
||||||
"definition_spelling": "4:29-4:34",
|
"definition_spelling": "4:29-4:34",
|
||||||
"definition_extent": "4:29-4:34",
|
"definition_extent": "4:29-4:34",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:29-4:34"]
|
"uses": ["4:29-4:34"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -153,10 +147,7 @@ OUTPUT:
|
|||||||
"detailed_name": "AClass * instance",
|
"detailed_name": "AClass * instance",
|
||||||
"definition_spelling": "14:11-14:19",
|
"definition_spelling": "14:11-14:19",
|
||||||
"definition_extent": "14:3-14:35",
|
"definition_extent": "14:3-14:35",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["14:11-14:19", "15:4-15:12", "16:3-16:11"]
|
"uses": ["14:11-14:19", "15:4-15:12", "16:3-16:11"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -53,10 +53,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:7-4:8",
|
"definition_spelling": "4:7-4:8",
|
||||||
"definition_extent": "4:3-4:8",
|
"definition_extent": "4:3-4:8",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["4:7-4:8"]
|
"uses": ["4:7-4:8"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -66,10 +63,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "5:7-5:8",
|
"definition_spelling": "5:7-5:8",
|
||||||
"definition_extent": "5:3-5:8",
|
"definition_extent": "5:3-5:8",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["5:7-5:8"]
|
"uses": ["5:7-5:8"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -80,10 +74,7 @@ OUTPUT:
|
|||||||
"definition_extent": "6:3-6:26",
|
"definition_extent": "6:3-6:26",
|
||||||
"variable_type": 1,
|
"variable_type": 1,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["6:20-6:26"]
|
"uses": ["6:20-6:26"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -95,10 +95,7 @@ OUTPUT:
|
|||||||
"definition_extent": "7:3-7:24",
|
"definition_extent": "7:3-7:24",
|
||||||
"variable_type": 1,
|
"variable_type": 1,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["7:15-7:24"]
|
"uses": ["7:15-7:24"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -109,10 +106,7 @@ OUTPUT:
|
|||||||
"definition_extent": "8:3-8:23",
|
"definition_extent": "8:3-8:23",
|
||||||
"variable_type": 1,
|
"variable_type": 1,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["8:15-8:23"]
|
"uses": ["8:15-8:23"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -123,10 +117,7 @@ OUTPUT:
|
|||||||
"definition_extent": "9:3-9:32",
|
"definition_extent": "9:3-9:32",
|
||||||
"variable_type": 2,
|
"variable_type": 2,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["9:28-9:32"]
|
"uses": ["9:28-9:32"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -115,10 +115,7 @@ OUTPUT: static_function_in_type.cc
|
|||||||
"definition_spelling": "5:29-5:30",
|
"definition_spelling": "5:29-5:30",
|
||||||
"definition_extent": "5:20-5:30",
|
"definition_extent": "5:20-5:30",
|
||||||
"variable_type": 1,
|
"variable_type": 1,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:29-5:30"]
|
"uses": ["5:29-5:30"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -18,10 +18,7 @@ OUTPUT:
|
|||||||
"hover": "#define FOO",
|
"hover": "#define FOO",
|
||||||
"definition_spelling": "2:9-2:12",
|
"definition_spelling": "2:9-2:12",
|
||||||
"definition_extent": "2:9-2:12",
|
"definition_extent": "2:9-2:12",
|
||||||
"is_local": false,
|
"cls": 2,
|
||||||
"is_macro": true,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["2:9-2:12"]
|
"uses": ["2:9-2:12"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -59,10 +59,7 @@ OUTPUT:
|
|||||||
"definition_extent": "9:3-10:47",
|
"definition_extent": "9:3-10:47",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 1,
|
"declaring_type": 1,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["6:30-6:40", "10:37-10:47", "13:26-13:36", "14:27-14:37"]
|
"uses": ["6:30-6:40", "10:37-10:47", "13:26-13:36", "14:27-14:37"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -71,10 +68,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int ns::Foo",
|
"detailed_name": "int ns::Foo",
|
||||||
"definition_spelling": "13:7-13:10",
|
"definition_spelling": "13:7-13:10",
|
||||||
"definition_extent": "13:3-13:36",
|
"definition_extent": "13:3-13:36",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["13:7-13:10"]
|
"uses": ["13:7-13:10"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -83,10 +77,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int ns::Foo2",
|
"detailed_name": "int ns::Foo2",
|
||||||
"definition_spelling": "14:7-14:11",
|
"definition_spelling": "14:7-14:11",
|
||||||
"definition_extent": "14:3-14:37",
|
"definition_extent": "14:3-14:37",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["14:7-14:11"]
|
"uses": ["14:7-14:11"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -54,10 +54,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int ns::a",
|
"detailed_name": "int ns::a",
|
||||||
"definition_spelling": "10:7-10:8",
|
"definition_spelling": "10:7-10:8",
|
||||||
"definition_extent": "10:3-10:33",
|
"definition_extent": "10:3-10:33",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["10:7-10:8"]
|
"uses": ["10:7-10:8"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -66,10 +63,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int ns::b",
|
"detailed_name": "int ns::b",
|
||||||
"definition_spelling": "11:7-11:8",
|
"definition_spelling": "11:7-11:8",
|
||||||
"definition_extent": "11:3-11:35",
|
"definition_extent": "11:3-11:35",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["11:7-11:8"]
|
"uses": ["11:7-11:8"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -35,10 +35,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "5:12-5:13",
|
"definition_spelling": "5:12-5:13",
|
||||||
"definition_extent": "5:3-5:13",
|
"definition_extent": "5:3-5:13",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:12-5:13"]
|
"uses": ["5:12-5:13"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -48,10 +45,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:13-6:14",
|
"definition_spelling": "6:13-6:14",
|
||||||
"definition_extent": "6:3-6:14",
|
"definition_extent": "6:3-6:14",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:13-6:14"]
|
"uses": ["6:13-6:14"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -51,10 +51,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "8:5-8:6",
|
"definition_spelling": "8:5-8:6",
|
||||||
"definition_extent": "8:1-8:24",
|
"definition_extent": "8:1-8:24",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["8:5-8:6"]
|
"uses": ["8:5-8:6"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -63,10 +60,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int b",
|
"detailed_name": "int b",
|
||||||
"definition_spelling": "9:5-9:6",
|
"definition_spelling": "9:5-9:6",
|
||||||
"definition_extent": "9:1-9:25",
|
"definition_extent": "9:1-9:25",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["9:5-9:6"]
|
"uses": ["9:5-9:6"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -52,10 +52,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "9:5-9:6",
|
"definition_spelling": "9:5-9:6",
|
||||||
"definition_extent": "9:1-9:31",
|
"definition_extent": "9:1-9:31",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["9:5-9:6"]
|
"uses": ["9:5-9:6"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -64,10 +61,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int b",
|
"detailed_name": "int b",
|
||||||
"definition_spelling": "10:5-10:6",
|
"definition_spelling": "10:5-10:6",
|
||||||
"definition_extent": "10:1-10:33",
|
"definition_extent": "10:1-10:33",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["10:5-10:6"]
|
"uses": ["10:5-10:6"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -98,10 +98,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "9:15-9:16",
|
"definition_spelling": "9:15-9:16",
|
||||||
"definition_extent": "9:1-9:16",
|
"definition_extent": "9:1-9:16",
|
||||||
"variable_type": 3,
|
"variable_type": 3,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["9:15-9:16"]
|
"uses": ["9:15-9:16"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -111,10 +108,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "10:15-10:16",
|
"definition_spelling": "10:15-10:16",
|
||||||
"definition_extent": "10:1-10:16",
|
"definition_extent": "10:1-10:16",
|
||||||
"variable_type": 3,
|
"variable_type": 3,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["10:15-10:16"]
|
"uses": ["10:15-10:16"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,7 @@ OUTPUT:
|
|||||||
"short_name": "var",
|
"short_name": "var",
|
||||||
"detailed_name": "const int Foo::var",
|
"detailed_name": "const int Foo::var",
|
||||||
"declaration": "3:24-3:27",
|
"declaration": "3:24-3:27",
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["3:24-3:27", "6:19-6:22", "7:20-7:23"]
|
"uses": ["3:24-3:27", "6:19-6:22", "7:20-7:23"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -45,10 +42,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "6:5-6:6",
|
"definition_spelling": "6:5-6:6",
|
||||||
"definition_extent": "6:1-6:22",
|
"definition_extent": "6:1-6:22",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:5-6:6"]
|
"uses": ["6:5-6:6"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -57,10 +51,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int b",
|
"detailed_name": "int b",
|
||||||
"definition_spelling": "7:5-7:6",
|
"definition_spelling": "7:5-7:6",
|
||||||
"definition_extent": "7:1-7:23",
|
"definition_extent": "7:1-7:23",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["7:5-7:6"]
|
"uses": ["7:5-7:6"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -37,10 +37,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "6:5-6:6",
|
"definition_spelling": "6:5-6:6",
|
||||||
"definition_extent": "6:1-6:19",
|
"definition_extent": "6:1-6:19",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:5-6:6"]
|
"uses": ["6:5-6:6"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -49,10 +46,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int b",
|
"detailed_name": "int b",
|
||||||
"definition_spelling": "7:5-7:6",
|
"definition_spelling": "7:5-7:6",
|
||||||
"definition_extent": "7:1-7:20",
|
"definition_extent": "7:1-7:20",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["7:5-7:6"]
|
"uses": ["7:5-7:6"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:10-4:11",
|
"definition_spelling": "4:10-4:11",
|
||||||
"definition_extent": "4:1-4:11",
|
"definition_extent": "4:1-4:11",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:10-4:11"]
|
"uses": ["4:10-4:11"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -46,10 +43,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "5:11-5:12",
|
"definition_spelling": "5:11-5:12",
|
||||||
"definition_extent": "5:1-5:12",
|
"definition_extent": "5:1-5:12",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:11-5:12"]
|
"uses": ["5:11-5:12"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -84,10 +84,7 @@ OUTPUT:
|
|||||||
"detailed_name": "T var",
|
"detailed_name": "T var",
|
||||||
"definition_spelling": "5:3-5:6",
|
"definition_spelling": "5:3-5:6",
|
||||||
"definition_extent": "5:1-5:12",
|
"definition_extent": "5:1-5:12",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:3-5:6", "7:7-7:10", "8:7-8:10"]
|
"uses": ["5:3-5:6", "7:7-7:10", "8:7-8:10"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -97,10 +94,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "7:3-7:4",
|
"definition_spelling": "7:3-7:4",
|
||||||
"definition_extent": "7:1-7:13",
|
"definition_extent": "7:1-7:13",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["7:3-7:4"]
|
"uses": ["7:3-7:4"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -110,10 +104,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "8:3-8:4",
|
"definition_spelling": "8:3-8:4",
|
||||||
"definition_extent": "8:1-8:13",
|
"definition_extent": "8:1-8:13",
|
||||||
"variable_type": 1,
|
"variable_type": 1,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["8:3-8:4"]
|
"uses": ["8:3-8:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -46,10 +46,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "2:18-2:19",
|
"definition_spelling": "2:18-2:19",
|
||||||
"definition_extent": "2:12-2:19",
|
"definition_extent": "2:12-2:19",
|
||||||
"declaring_type": 1,
|
"declaring_type": 1,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:18-2:19"]
|
"uses": ["2:18-2:19"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -59,10 +56,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "2:21-2:22",
|
"definition_spelling": "2:21-2:22",
|
||||||
"definition_extent": "2:12-2:22",
|
"definition_extent": "2:12-2:22",
|
||||||
"declaring_type": 1,
|
"declaring_type": 1,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:21-2:22"]
|
"uses": ["2:21-2:22"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -72,10 +66,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "2:24-2:25",
|
"definition_spelling": "2:24-2:25",
|
||||||
"definition_extent": "2:12-2:25",
|
"definition_extent": "2:12-2:25",
|
||||||
"declaring_type": 1,
|
"declaring_type": 1,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:24-2:25"]
|
"uses": ["2:24-2:25"]
|
||||||
}, {
|
}, {
|
||||||
"id": 3,
|
"id": 3,
|
||||||
@ -85,10 +76,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "3:9-3:10",
|
"definition_spelling": "3:9-3:10",
|
||||||
"definition_extent": "3:3-3:13",
|
"definition_extent": "3:3-3:13",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["3:9-3:10"]
|
"uses": ["3:9-3:10"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -32,10 +32,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "2:7-2:8",
|
"definition_spelling": "2:7-2:8",
|
||||||
"definition_extent": "2:3-2:8",
|
"definition_extent": "2:3-2:8",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:7-2:8"]
|
"uses": ["2:7-2:8"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -45,10 +42,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "3:8-3:9",
|
"definition_spelling": "3:8-3:9",
|
||||||
"definition_extent": "3:3-3:9",
|
"definition_extent": "3:3-3:9",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["3:8-3:9"]
|
"uses": ["3:8-3:9"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -54,10 +54,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "2:7-2:8",
|
"definition_spelling": "2:7-2:8",
|
||||||
"definition_extent": "2:3-2:12",
|
"definition_extent": "2:3-2:12",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:7-2:8", "9:5-9:6"]
|
"uses": ["2:7-2:8", "9:5-9:6"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -67,10 +64,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "3:8-3:9",
|
"definition_spelling": "3:8-3:9",
|
||||||
"definition_extent": "3:3-3:13",
|
"definition_extent": "3:3-3:13",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["3:8-3:9"]
|
"uses": ["3:8-3:9"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -80,10 +74,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:5-6:6",
|
"definition_spelling": "6:5-6:6",
|
||||||
"definition_extent": "6:1-6:6",
|
"definition_extent": "6:1-6:6",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:5-6:6", "9:3-9:4"]
|
"uses": ["6:5-6:6", "9:3-9:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -52,10 +52,7 @@ OUTPUT:
|
|||||||
"hover": "#define MACRO_CALL(e) e",
|
"hover": "#define MACRO_CALL(e) e",
|
||||||
"definition_spelling": "1:9-1:19",
|
"definition_spelling": "1:9-1:19",
|
||||||
"definition_extent": "1:9-1:24",
|
"definition_extent": "1:9-1:24",
|
||||||
"is_local": false,
|
"cls": 2,
|
||||||
"is_macro": true,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:9-1:19", "6:3-6:13"]
|
"uses": ["1:9-1:19", "6:3-6:13"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -63,10 +63,7 @@ OUTPUT:
|
|||||||
"detailed_name": "void (*)() x",
|
"detailed_name": "void (*)() x",
|
||||||
"definition_spelling": "6:10-6:11",
|
"definition_spelling": "6:10-6:11",
|
||||||
"definition_extent": "6:3-6:22",
|
"definition_extent": "6:3-6:22",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:10-6:11"]
|
"uses": ["6:10-6:11"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -67,10 +67,7 @@ OUTPUT:
|
|||||||
"detailed_name": "void (Foo::*)() x",
|
"detailed_name": "void (Foo::*)() x",
|
||||||
"definition_spelling": "6:8-6:9",
|
"definition_spelling": "6:8-6:9",
|
||||||
"definition_extent": "6:3-6:22",
|
"definition_extent": "6:3-6:22",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:8-6:9"]
|
"uses": ["6:8-6:9"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -68,10 +68,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:8-6:9",
|
"definition_spelling": "6:8-6:9",
|
||||||
"definition_extent": "6:3-6:19",
|
"definition_extent": "6:3-6:19",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:8-6:9", "7:3-7:4"]
|
"uses": ["6:8-6:9", "7:3-7:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -49,10 +49,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:7-6:8",
|
"definition_spelling": "6:7-6:8",
|
||||||
"definition_extent": "6:3-6:19",
|
"definition_extent": "6:3-6:19",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["6:7-6:8"]
|
"uses": ["6:7-6:8"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -67,10 +67,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:8-6:9",
|
"definition_spelling": "6:8-6:9",
|
||||||
"definition_extent": "6:3-6:19",
|
"definition_extent": "6:3-6:19",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:8-6:9", "7:3-7:4"]
|
"uses": ["6:8-6:9", "7:3-7:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -67,10 +67,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:25-6:27",
|
"definition_spelling": "6:25-6:27",
|
||||||
"definition_extent": "6:1-6:27",
|
"definition_extent": "6:1-6:27",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:25-6:27"]
|
"uses": ["6:25-6:27"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -80,10 +77,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "7:22-7:24",
|
"definition_spelling": "7:22-7:24",
|
||||||
"definition_extent": "7:1-7:24",
|
"definition_extent": "7:1-7:24",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["7:22-7:24"]
|
"uses": ["7:22-7:24"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -93,10 +87,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "10:18-10:23",
|
"definition_spelling": "10:18-10:23",
|
||||||
"definition_extent": "10:3-10:23",
|
"definition_extent": "10:3-10:23",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["10:18-10:23"]
|
"uses": ["10:18-10:23"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -204,10 +204,7 @@ OUTPUT:
|
|||||||
"detailed_name": "unique_ptr<unique_ptr<S1, S2>, S2> f",
|
"detailed_name": "unique_ptr<unique_ptr<S1, S2>, S2> f",
|
||||||
"declaration": "15:43-15:44",
|
"declaration": "15:43-15:44",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["15:43-15:44"]
|
"uses": ["15:43-15:44"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -217,10 +214,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "54:39-54:44",
|
"definition_spelling": "54:39-54:44",
|
||||||
"definition_extent": "54:3-54:44",
|
"definition_extent": "54:3-54:44",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["54:39-54:44"]
|
"uses": ["54:39-54:44"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -46,10 +46,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:22-6:25",
|
"definition_spelling": "6:22-6:25",
|
||||||
"definition_extent": "6:1-6:25",
|
"definition_extent": "6:1-6:25",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:22-6:25"]
|
"uses": ["6:22-6:25"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -29,10 +29,7 @@ OUTPUT:
|
|||||||
"detailed_name": "T t",
|
"detailed_name": "T t",
|
||||||
"declaration": "3:10-3:11",
|
"declaration": "3:10-3:11",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["3:10-3:11"]
|
"uses": ["3:10-3:11"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -62,10 +62,7 @@ OUTPUT:
|
|||||||
"definition_extent": "5:3-5:17",
|
"definition_extent": "5:3-5:17",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 2,
|
"declaring_type": 2,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["5:16-5:17"]
|
"uses": ["5:16-5:17"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -76,10 +73,7 @@ OUTPUT:
|
|||||||
"definition_extent": "6:3-6:20",
|
"definition_extent": "6:3-6:20",
|
||||||
"variable_type": 1,
|
"variable_type": 1,
|
||||||
"declaring_type": 2,
|
"declaring_type": 2,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["6:19-6:20"]
|
"uses": ["6:19-6:20"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -61,10 +61,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "5:16-5:17",
|
"definition_spelling": "5:16-5:17",
|
||||||
"definition_extent": "5:3-5:17",
|
"definition_extent": "5:3-5:17",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:16-5:17"]
|
"uses": ["5:16-5:17"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -74,10 +71,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:19-6:20",
|
"definition_spelling": "6:19-6:20",
|
||||||
"definition_extent": "6:3-6:20",
|
"definition_extent": "6:3-6:20",
|
||||||
"variable_type": 1,
|
"variable_type": 1,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:19-6:20"]
|
"uses": ["6:19-6:20"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -58,10 +58,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:23-4:24",
|
"definition_spelling": "4:23-4:24",
|
||||||
"definition_extent": "4:10-4:24",
|
"definition_extent": "4:10-4:24",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:23-4:24"]
|
"uses": ["4:23-4:24"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -71,10 +68,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:42-4:43",
|
"definition_spelling": "4:42-4:43",
|
||||||
"definition_extent": "4:26-4:43",
|
"definition_extent": "4:26-4:43",
|
||||||
"variable_type": 1,
|
"variable_type": 1,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:42-4:43"]
|
"uses": ["4:42-4:43"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -54,10 +54,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:15-4:16",
|
"definition_spelling": "4:15-4:16",
|
||||||
"definition_extent": "4:10-4:16",
|
"definition_extent": "4:10-4:16",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:15-4:16"]
|
"uses": ["4:15-4:16"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -49,10 +49,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "3:16-3:18",
|
"definition_spelling": "3:16-3:18",
|
||||||
"definition_extent": "3:10-3:18",
|
"definition_extent": "3:10-3:18",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["3:16-3:18"]
|
"uses": ["3:16-3:18"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -62,10 +59,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "3:32-3:34",
|
"definition_spelling": "3:32-3:34",
|
||||||
"definition_extent": "3:20-3:34",
|
"definition_extent": "3:20-3:34",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["3:32-3:34"]
|
"uses": ["3:32-3:34"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -75,10 +69,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:8-4:10",
|
"definition_spelling": "4:8-4:10",
|
||||||
"definition_extent": "4:3-4:10",
|
"definition_extent": "4:3-4:10",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:8-4:10"]
|
"uses": ["4:8-4:10"]
|
||||||
}, {
|
}, {
|
||||||
"id": 3,
|
"id": 3,
|
||||||
@ -88,10 +79,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "5:9-5:11",
|
"definition_spelling": "5:9-5:11",
|
||||||
"definition_extent": "5:3-5:11",
|
"definition_extent": "5:3-5:11",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:9-5:11"]
|
"uses": ["5:9-5:11"]
|
||||||
}, {
|
}, {
|
||||||
"id": 4,
|
"id": 4,
|
||||||
@ -101,10 +89,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:15-6:17",
|
"definition_spelling": "6:15-6:17",
|
||||||
"definition_extent": "6:3-6:17",
|
"definition_extent": "6:3-6:17",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:15-6:17"]
|
"uses": ["6:15-6:17"]
|
||||||
}, {
|
}, {
|
||||||
"id": 5,
|
"id": 5,
|
||||||
@ -114,10 +99,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "7:21-7:23",
|
"definition_spelling": "7:21-7:23",
|
||||||
"definition_extent": "7:3-7:33",
|
"definition_extent": "7:3-7:33",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["7:21-7:23"]
|
"uses": ["7:21-7:23"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -29,10 +29,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "2:13-2:14",
|
"definition_spelling": "2:13-2:14",
|
||||||
"definition_extent": "2:1-2:14",
|
"definition_extent": "2:1-2:14",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["2:13-2:14"]
|
"uses": ["2:13-2:14"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -58,10 +58,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "6:7-6:8",
|
"definition_spelling": "6:7-6:8",
|
||||||
"definition_extent": "6:3-6:8",
|
"definition_extent": "6:3-6:8",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["6:7-6:8"]
|
"uses": ["6:7-6:8"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -70,10 +67,7 @@ OUTPUT:
|
|||||||
"detailed_name": "Foo foo",
|
"detailed_name": "Foo foo",
|
||||||
"declaration": "10:12-10:15",
|
"declaration": "10:12-10:15",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["10:12-10:15"]
|
"uses": ["10:12-10:15"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -92,10 +92,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "10:10-10:20",
|
"definition_spelling": "10:10-10:20",
|
||||||
"definition_extent": "10:1-10:24",
|
"definition_extent": "10:1-10:24",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["6:14-6:24", "10:10-10:20", "14:45-14:55"]
|
"uses": ["6:14-6:24", "10:10-10:20", "14:45-14:55"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -105,10 +102,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "7:7-7:16",
|
"definition_spelling": "7:7-7:16",
|
||||||
"definition_extent": "7:3-7:16",
|
"definition_extent": "7:3-7:16",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["7:7-7:16", "14:28-14:37"]
|
"uses": ["7:7-7:16", "14:28-14:37"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -117,10 +111,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "13:7-13:8",
|
"definition_spelling": "13:7-13:8",
|
||||||
"definition_extent": "13:3-13:12",
|
"definition_extent": "13:3-13:12",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["13:7-13:8", "14:10-14:11"]
|
"uses": ["13:7-13:8", "14:10-14:11"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -49,10 +49,7 @@ OUTPUT:
|
|||||||
"detailed_name": "void (*)() x",
|
"detailed_name": "void (*)() x",
|
||||||
"definition_spelling": "4:8-4:9",
|
"definition_spelling": "4:8-4:9",
|
||||||
"definition_extent": "4:3-4:19",
|
"definition_extent": "4:3-4:19",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:8-4:9", "5:3-5:4"]
|
"uses": ["4:8-4:9", "5:3-5:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -94,10 +94,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "3:7-3:8",
|
"definition_spelling": "3:7-3:8",
|
||||||
"definition_extent": "3:3-3:8",
|
"definition_extent": "3:3-3:8",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"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"]
|
"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,
|
"id": 1,
|
||||||
@ -107,10 +104,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:7-4:8",
|
"definition_spelling": "4:7-4:8",
|
||||||
"definition_extent": "4:3-4:8",
|
"definition_extent": "4:3-4:8",
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["4:7-4:8", "17:12-17:13"]
|
"uses": ["4:7-4:8", "17:12-17:13"]
|
||||||
}, {
|
}, {
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@ -120,10 +114,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "11:7-11:8",
|
"definition_spelling": "11:7-11:8",
|
||||||
"definition_extent": "11:3-11:8",
|
"definition_extent": "11:3-11:8",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"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"]
|
"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"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -66,10 +66,7 @@ OUTPUT:
|
|||||||
"short_name": "x",
|
"short_name": "x",
|
||||||
"detailed_name": "int Foo::x",
|
"detailed_name": "int Foo::x",
|
||||||
"declaration": "2:14-2:15",
|
"declaration": "2:14-2:15",
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:14-2:15", "8:15-8:16"]
|
"uses": ["2:14-2:15", "8:15-8:16"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -52,10 +52,7 @@ OUTPUT:
|
|||||||
"definition_extent": "7:1-7:33",
|
"definition_extent": "7:1-7:33",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 1,
|
"declaring_type": 1,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["4:28-4:38", "7:23-7:33"]
|
"uses": ["4:28-4:38", "7:23-7:33"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -30,10 +30,7 @@ OUTPUT:
|
|||||||
"short_name": "a",
|
"short_name": "a",
|
||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"declaration": "1:12-1:13",
|
"declaration": "1:12-1:13",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:12-1:13", "4:3-4:4"]
|
"uses": ["1:12-1:13", "4:3-4:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -29,10 +29,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "1:14-1:15",
|
"definition_spelling": "1:14-1:15",
|
||||||
"definition_extent": "1:10-1:15",
|
"definition_extent": "1:10-1:15",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:14-1:15", "2:3-2:4"]
|
"uses": ["1:14-1:15", "2:3-2:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -30,10 +30,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int x",
|
"detailed_name": "int x",
|
||||||
"definition_spelling": "2:7-2:8",
|
"definition_spelling": "2:7-2:8",
|
||||||
"definition_extent": "2:3-2:8",
|
"definition_extent": "2:3-2:8",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["2:7-2:8", "3:3-3:4"]
|
"uses": ["2:7-2:8", "3:3-3:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -35,10 +35,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "2:7-2:8",
|
"definition_spelling": "2:7-2:8",
|
||||||
"definition_extent": "2:3-2:8",
|
"definition_extent": "2:3-2:8",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["2:7-2:8", "3:3-3:4", "8:3-8:4"]
|
"uses": ["2:7-2:8", "3:3-3:4", "8:3-8:4"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -47,10 +44,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "5:9-5:10",
|
"definition_spelling": "5:9-5:10",
|
||||||
"definition_extent": "5:5-5:10",
|
"definition_extent": "5:5-5:10",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:9-5:10", "6:5-6:6"]
|
"uses": ["5:9-5:10", "6:5-6:6"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -35,10 +35,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "1:14-1:15",
|
"definition_spelling": "1:14-1:15",
|
||||||
"definition_extent": "1:10-1:15",
|
"definition_extent": "1:10-1:15",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:14-1:15", "2:3-2:4", "7:3-7:4"]
|
"uses": ["1:14-1:15", "2:3-2:4", "7:3-7:4"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -47,10 +44,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "4:9-4:10",
|
"definition_spelling": "4:9-4:10",
|
||||||
"definition_extent": "4:5-4:10",
|
"definition_extent": "4:5-4:10",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:9-4:10", "5:5-5:6"]
|
"uses": ["4:9-4:10", "5:5-5:6"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -32,10 +32,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "1:12-1:13",
|
"definition_spelling": "1:12-1:13",
|
||||||
"definition_extent": "1:1-1:13",
|
"definition_extent": "1:1-1:13",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:12-1:13", "4:3-4:4"]
|
"uses": ["1:12-1:13", "4:3-4:4"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -31,10 +31,7 @@ OUTPUT:
|
|||||||
"definition_extent": "2:3-2:14",
|
"definition_extent": "2:3-2:14",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:8-2:14"]
|
"uses": ["2:8-2:14"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -34,10 +34,7 @@ OUTPUT:
|
|||||||
"definition_extent": "4:1-4:27",
|
"definition_extent": "4:1-4:27",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"declaring_type": 0,
|
"declaring_type": 0,
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:15-2:21", "4:11-4:17"]
|
"uses": ["2:15-2:21", "4:11-4:17"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -28,10 +28,7 @@ OUTPUT:
|
|||||||
"short_name": "member",
|
"short_name": "member",
|
||||||
"detailed_name": "int Foo::member",
|
"detailed_name": "int Foo::member",
|
||||||
"declaration": "2:14-2:20",
|
"declaration": "2:14-2:20",
|
||||||
"is_local": false,
|
"cls": 4,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": true,
|
|
||||||
"uses": ["2:14-2:20"]
|
"uses": ["2:14-2:20"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -47,10 +47,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "3:8-3:9",
|
"definition_spelling": "3:8-3:9",
|
||||||
"definition_extent": "3:3-3:21",
|
"definition_extent": "3:3-3:21",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["3:8-3:9"]
|
"uses": ["3:8-3:9"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -60,10 +57,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:9-4:10",
|
"definition_spelling": "4:9-4:10",
|
||||||
"definition_extent": "4:3-4:22",
|
"definition_extent": "4:3-4:22",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:9-4:10"]
|
"uses": ["4:9-4:10"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -45,10 +45,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:8-4:9",
|
"definition_spelling": "4:8-4:9",
|
||||||
"definition_extent": "4:3-4:9",
|
"definition_extent": "4:3-4:9",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:8-4:9"]
|
"uses": ["4:8-4:9"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -43,10 +43,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "3:15-3:17",
|
"definition_spelling": "3:15-3:17",
|
||||||
"definition_extent": "3:10-3:17",
|
"definition_extent": "3:10-3:17",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["3:15-3:17"]
|
"uses": ["3:15-3:17"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -56,10 +53,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "3:24-3:26",
|
"definition_spelling": "3:24-3:26",
|
||||||
"definition_extent": "3:19-3:26",
|
"definition_extent": "3:19-3:26",
|
||||||
"variable_type": 0,
|
"variable_type": 0,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["3:24-3:26"]
|
"uses": ["3:24-3:26"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -35,10 +35,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "2:7-2:8",
|
"definition_spelling": "2:7-2:8",
|
||||||
"definition_extent": "2:3-2:8",
|
"definition_extent": "2:3-2:8",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["2:7-2:8", "3:3-3:4", "8:3-8:4"]
|
"uses": ["2:7-2:8", "3:3-3:4", "8:3-8:4"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -47,10 +44,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int a",
|
"detailed_name": "int a",
|
||||||
"definition_spelling": "5:9-5:10",
|
"definition_spelling": "5:9-5:10",
|
||||||
"definition_extent": "5:5-5:10",
|
"definition_extent": "5:5-5:10",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["5:9-5:10", "6:5-6:6"]
|
"uses": ["5:9-5:10", "6:5-6:6"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -29,10 +29,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int p",
|
"detailed_name": "int p",
|
||||||
"definition_spelling": "1:14-1:15",
|
"definition_spelling": "1:14-1:15",
|
||||||
"definition_extent": "1:10-1:15",
|
"definition_extent": "1:10-1:15",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:14-1:15"]
|
"uses": ["1:14-1:15"]
|
||||||
}, {
|
}, {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@ -41,10 +38,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int p",
|
"detailed_name": "int p",
|
||||||
"definition_spelling": "2:9-2:10",
|
"definition_spelling": "2:9-2:10",
|
||||||
"definition_extent": "2:5-2:14",
|
"definition_extent": "2:5-2:14",
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["2:9-2:10"]
|
"uses": ["2:9-2:10"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,7 @@ OUTPUT:
|
|||||||
"detailed_name": "int global",
|
"detailed_name": "int global",
|
||||||
"definition_spelling": "1:12-1:18",
|
"definition_spelling": "1:12-1:18",
|
||||||
"definition_extent": "1:1-1:22",
|
"definition_extent": "1:1-1:22",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:12-1:18"]
|
"uses": ["1:12-1:18"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -12,10 +12,7 @@ OUTPUT:
|
|||||||
"short_name": "global",
|
"short_name": "global",
|
||||||
"detailed_name": "int global",
|
"detailed_name": "int global",
|
||||||
"declaration": "1:12-1:18",
|
"declaration": "1:12-1:18",
|
||||||
"is_local": false,
|
"cls": 3,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": true,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["1:12-1:18"]
|
"uses": ["1:12-1:18"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
@ -65,10 +65,7 @@ OUTPUT:
|
|||||||
"definition_spelling": "4:5-4:6",
|
"definition_spelling": "4:5-4:6",
|
||||||
"definition_extent": "4:3-4:6",
|
"definition_extent": "4:3-4:6",
|
||||||
"variable_type": 1,
|
"variable_type": 1,
|
||||||
"is_local": true,
|
"cls": 1,
|
||||||
"is_macro": false,
|
|
||||||
"is_global": false,
|
|
||||||
"is_member": false,
|
|
||||||
"uses": ["4:5-4:6"]
|
"uses": ["4:5-4:6"]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user