- Add type information to qualified_name, remove hover.

- Allow tests to automatically update their expecatations
This commit is contained in:
Jacob Dufault 2017-04-14 21:53:10 -07:00
parent 349b982f66
commit 07c984d6c7
103 changed files with 275 additions and 489 deletions

View File

@ -2,6 +2,7 @@
#include "cache.h" #include "cache.h"
#include "code_completion.h" #include "code_completion.h"
#include "file_consumer.h" #include "file_consumer.h"
#include "fuzzy.h"
#include "indexer.h" #include "indexer.h"
#include "query.h" #include "query.h"
#include "language_server_api.h" #include "language_server_api.h"
@ -134,9 +135,9 @@ std::string GetHoverForSymbol(QueryableDatabase* db, const SymbolIdx& symbol) {
case SymbolKind::Type: case SymbolKind::Type:
return db->types[symbol.idx].def.qualified_name; return db->types[symbol.idx].def.qualified_name;
case SymbolKind::Func: case SymbolKind::Func:
return db->funcs[symbol.idx].def.hover; return db->funcs[symbol.idx].def.qualified_name;
case SymbolKind::Var: case SymbolKind::Var:
return db->vars[symbol.idx].def.hover; return db->vars[symbol.idx].def.qualified_name;
case SymbolKind::File: case SymbolKind::File:
case SymbolKind::Invalid: { case SymbolKind::Invalid: {
assert(false && "unexpected"); assert(false && "unexpected");
@ -1262,7 +1263,7 @@ void QueryDbMainLoop(
} }
} }
std::cerr << "- Found " << response.result.size() << " results" << std::endl; std::cerr << "- Found " << response.result.size() << " results for query " << query << std::endl;
SendOutMessageToClient(language_client, response); SendOutMessageToClient(language_client, response);
break; break;
} }

View File

@ -781,11 +781,11 @@ void indexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) {
var_def->def.short_name = decl->entityInfo->name; var_def->def.short_name = decl->entityInfo->name;
var_def->def.qualified_name = var_def->def.qualified_name =
ns->QualifiedName(decl->semanticContainer, var_def->def.short_name); ns->QualifiedName(decl->semanticContainer, var_def->def.short_name);
var_def->def.hover = clang::ToString(clang_getTypeSpelling(clang_getCursorType(decl->cursor))); std::string hover = clang::ToString(clang_getTypeSpelling(clang_getCursorType(decl->cursor)));
// Include type in qualified name. // Include type in qualified name.
if (!var_def->def.hover.empty()) if (!hover.empty())
var_def->def.qualified_name = var_def->def.hover + " " + var_def->def.qualified_name; var_def->def.qualified_name = hover + " " + var_def->def.qualified_name;
//} //}
if (decl->isDefinition) { if (decl->isDefinition) {
@ -891,18 +891,18 @@ void indexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) {
//} //}
// TODO: we should build this ourselves. It doesn't include parameter names for functions. // TODO: we should build this ourselves. It doesn't include parameter names for functions.
func_def->def.hover = decl_cursor.get_type_description(); std::string hover = decl_cursor.get_type_description();
// Update qualified name to include function signature // Update qualified name to include function signature
// TODO: make this less hideous // TODO: make this less hideous
auto it = std::find(func_def->def.hover.begin(), func_def->def.hover.end(), '('); auto it = std::find(hover.begin(), hover.end(), '(');
if (it != func_def->def.hover.end()) { if (it != hover.end()) {
std::string new_qualified_name; std::string new_qualified_name;
new_qualified_name.resize(func_def->def.hover.size() + func_def->def.qualified_name.size() + 1); new_qualified_name.resize(hover.size() + func_def->def.qualified_name.size());
std::copy(func_def->def.hover.begin(), it, new_qualified_name.begin()); std::copy(hover.begin(), it, new_qualified_name.begin());
std::copy(func_def->def.qualified_name.begin(), func_def->def.qualified_name.end(), new_qualified_name.begin() + std::distance(func_def->def.hover.begin(), it)); std::copy(func_def->def.qualified_name.begin(), func_def->def.qualified_name.end(), new_qualified_name.begin() + std::distance(hover.begin(), it));
std::copy(it, func_def->def.hover.end(), new_qualified_name.begin() + std::distance(func_def->def.hover.begin(), it) + func_def->def.qualified_name.size()); std::copy(it, hover.end(), new_qualified_name.begin() + std::distance(hover.begin(), it) + func_def->def.qualified_name.size());
func_def->def.qualified_name = new_qualified_name; func_def->def.qualified_name = new_qualified_name;
} }

View File

@ -226,7 +226,6 @@ struct FuncDefDefinitionData {
std::string usr; std::string usr;
std::string short_name; std::string short_name;
std::string qualified_name; std::string qualified_name;
std::string hover;
optional<Range> definition_spelling; optional<Range> definition_spelling;
optional<Range> definition_extent; optional<Range> definition_extent;
@ -252,7 +251,6 @@ struct FuncDefDefinitionData {
other) const { other) const {
return usr == other.usr && short_name == other.short_name && return usr == other.usr && short_name == other.short_name &&
qualified_name == other.qualified_name && qualified_name == other.qualified_name &&
hover == other.hover &&
definition_spelling == other.definition_spelling && definition_spelling == other.definition_spelling &&
definition_extent == other.definition_extent && definition_extent == other.definition_extent &&
declaring_type == other.declaring_type && base == other.base && declaring_type == other.declaring_type && base == other.base &&
@ -278,7 +276,6 @@ void Reflect(
REFLECT_MEMBER(usr); REFLECT_MEMBER(usr);
REFLECT_MEMBER(short_name); REFLECT_MEMBER(short_name);
REFLECT_MEMBER(qualified_name); REFLECT_MEMBER(qualified_name);
REFLECT_MEMBER(hover);
REFLECT_MEMBER(definition); REFLECT_MEMBER(definition);
REFLECT_MEMBER(declaring_type); REFLECT_MEMBER(declaring_type);
REFLECT_MEMBER(base); REFLECT_MEMBER(base);
@ -336,7 +333,6 @@ struct VarDefDefinitionData {
std::string usr; std::string usr;
std::string short_name; std::string short_name;
std::string qualified_name; std::string qualified_name;
std::string hover;
optional<Range> declaration; optional<Range> declaration;
// TODO: definitions should be a list of ranges, since there can be more // TODO: definitions should be a list of ranges, since there can be more
// than one - when?? // than one - when??
@ -356,7 +352,6 @@ struct VarDefDefinitionData {
other) const { other) const {
return usr == other.usr && short_name == other.short_name && return usr == other.usr && short_name == other.short_name &&
qualified_name == other.qualified_name && qualified_name == other.qualified_name &&
hover == other.hover &&
declaration == other.declaration && declaration == other.declaration &&
definition_spelling == other.definition_spelling && definition_spelling == other.definition_spelling &&
definition_extent == other.definition_extent && definition_extent == other.definition_extent &&
@ -380,7 +375,6 @@ void Reflect(TVisitor& visitor,
REFLECT_MEMBER(usr); REFLECT_MEMBER(usr);
REFLECT_MEMBER(short_name); REFLECT_MEMBER(short_name);
REFLECT_MEMBER(qualified_name); REFLECT_MEMBER(qualified_name);
REFLECT_MEMBER(hover);
REFLECT_MEMBER(definition_spelling); REFLECT_MEMBER(definition_spelling);
REFLECT_MEMBER(definition_extent); REFLECT_MEMBER(definition_extent);
REFLECT_MEMBER(variable_type); REFLECT_MEMBER(variable_type);

View File

@ -36,7 +36,6 @@ QueryableFuncDef::DefUpdate ToQuery(const IdMap& id_map, const IndexedFuncDef::D
QueryableFuncDef::DefUpdate result(func.usr); QueryableFuncDef::DefUpdate result(func.usr);
result.short_name = func.short_name; result.short_name = func.short_name;
result.qualified_name = func.qualified_name; result.qualified_name = func.qualified_name;
result.hover = func.hover;
result.definition_spelling = id_map.ToQuery(func.definition_spelling); result.definition_spelling = id_map.ToQuery(func.definition_spelling);
result.definition_extent = id_map.ToQuery(func.definition_extent); result.definition_extent = id_map.ToQuery(func.definition_extent);
result.declaring_type = id_map.ToQuery(func.declaring_type); result.declaring_type = id_map.ToQuery(func.declaring_type);
@ -51,7 +50,6 @@ QueryableVarDef::DefUpdate ToQuery(const IdMap& id_map, const IndexedVarDef::Def
QueryableVarDef::DefUpdate result(var.usr); QueryableVarDef::DefUpdate result(var.usr);
result.short_name = var.short_name; result.short_name = var.short_name;
result.qualified_name = var.qualified_name; result.qualified_name = var.qualified_name;
result.hover = var.hover;
result.declaration = id_map.ToQuery(var.declaration); result.declaration = id_map.ToQuery(var.declaration);
result.definition_spelling = id_map.ToQuery(var.definition_spelling); result.definition_spelling = id_map.ToQuery(var.definition_spelling);
result.definition_extent = id_map.ToQuery(var.definition_extent); result.definition_extent = id_map.ToQuery(var.definition_extent);

View File

@ -153,7 +153,6 @@ void Reflect(TVisitor& visitor, IndexedFuncDef& value) {
REFLECT_MEMBER2("usr", value.def.usr); REFLECT_MEMBER2("usr", value.def.usr);
REFLECT_MEMBER2("short_name", value.def.short_name); REFLECT_MEMBER2("short_name", value.def.short_name);
REFLECT_MEMBER2("qualified_name", value.def.qualified_name); REFLECT_MEMBER2("qualified_name", value.def.qualified_name);
REFLECT_MEMBER2("hover", value.def.hover);
REFLECT_MEMBER2("declarations", value.declarations); REFLECT_MEMBER2("declarations", value.declarations);
REFLECT_MEMBER2("definition_spelling", value.def.definition_spelling); REFLECT_MEMBER2("definition_spelling", value.def.definition_spelling);
REFLECT_MEMBER2("definition_extent", value.def.definition_extent); REFLECT_MEMBER2("definition_extent", value.def.definition_extent);
@ -189,7 +188,6 @@ void Reflect(TVisitor& visitor, IndexedVarDef& value) {
REFLECT_MEMBER2("usr", value.def.usr); REFLECT_MEMBER2("usr", value.def.usr);
REFLECT_MEMBER2("short_name", value.def.short_name); REFLECT_MEMBER2("short_name", value.def.short_name);
REFLECT_MEMBER2("qualified_name", value.def.qualified_name); REFLECT_MEMBER2("qualified_name", value.def.qualified_name);
REFLECT_MEMBER2("hover", value.def.hover);
REFLECT_MEMBER2("declaration", value.def.declaration); REFLECT_MEMBER2("declaration", value.def.declaration);
REFLECT_MEMBER2("definition_spelling", value.def.definition_spelling); REFLECT_MEMBER2("definition_spelling", value.def.definition_spelling);
REFLECT_MEMBER2("definition_extent", value.def.definition_extent); REFLECT_MEMBER2("definition_extent", value.def.definition_extent);

View File

@ -113,6 +113,7 @@ IndexedFile* FindDbForPathEnding(const std::string& path, const std::vector<std:
void RunTests() { void RunTests() {
// TODO: Assert that we need to be on clang >= 3.9.1 // TODO: Assert that we need to be on clang >= 3.9.1
bool update_all = false;
for (std::string path : GetFilesInFolder("tests", true /*recursive*/, true /*add_folder_to_path*/)) { for (std::string path : GetFilesInFolder("tests", true /*recursive*/, true /*add_folder_to_path*/)) {
//if (path != "tests/templates/specialized_func_definition.cc") continue; //if (path != "tests/templates/specialized_func_definition.cc") continue;
@ -197,9 +198,20 @@ void RunTests() {
DiffDocuments(path, expected_path, expected, actual); DiffDocuments(path, expected_path, expected, actual);
std::cout << std::endl; std::cout << std::endl;
std::cout << std::endl; std::cout << std::endl;
std::cout << "[Enter to continue]"; std::cout << "[Enter to continue - type u to update test, a to update all]";
std::cin.get(); char c = 'u';
std::cin.get(); if (!update_all) {
c = std::cin.get();
std::cin.get();
}
if (c == 'a')
update_all = true;
if (update_all || c == 'u') {
UpdateTestExpectation(path, expected_output, ToString(actual) + "\n");
}
} }
} }
} }

View File

@ -183,6 +183,22 @@ std::unordered_map<std::string, std::string> ParseTestExpectation(std::string fi
return result; return result;
} }
void UpdateTestExpectation(const std::string& filename, const std::string& expectation, const std::string& actual) {
// Read the entire file into a string.
std::ifstream in(filename);
std::string str;
str.assign(std::istreambuf_iterator<char>(in), std::istreambuf_iterator<char>());
in.close();
// Replace expectation
auto it = str.find(expectation);
str.replace(it, expectation.size(), actual);
// Write it back out.
std::ofstream of(filename, std::ios::out | std::ios::trunc);
of.write(str.c_str(), str.size());
of.close();
}
void Fail(const std::string& message) { void Fail(const std::string& message) {
std::cerr << "Fatal error: " << message << std::endl; std::cerr << "Fatal error: " << message << std::endl;

View File

@ -17,6 +17,7 @@ std::string ReplaceAll(const std::string& source, const std::string& from, const
std::vector<std::string> GetFilesInFolder(std::string folder, bool recursive, bool add_folder_to_path); std::vector<std::string> GetFilesInFolder(std::string folder, bool recursive, bool add_folder_to_path);
std::vector<std::string> ReadLines(std::string filename); std::vector<std::string> ReadLines(std::string filename);
std::unordered_map<std::string, std::string> ParseTestExpectation(std::string filename); std::unordered_map<std::string, std::string> ParseTestExpectation(std::string filename);
void UpdateTestExpectation(const std::string& filename, const std::string& expectation, const std::string& actual);
void Fail(const std::string& message); void Fail(const std::string& message);

View File

@ -26,8 +26,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@Foo#", "usr": "c:@S@Foo@F@Foo#",
"short_name": "Foo", "short_name": "Foo",
"qualified_name": "Foo::Foo", "qualified_name": "void Foo::Foo()",
"hover": "void ()",
"definition_spelling": "3:3-3:6", "definition_spelling": "3:3-3:6",
"definition_extent": "3:3-3:11", "definition_extent": "3:3-3:11",
"declaring_type": 0, "declaring_type": 0,
@ -36,8 +35,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "6:6-6:9", "definition_spelling": "6:6-6:9",
"definition_extent": "6:1-9:2", "definition_extent": "6:1-9:2",
"callees": ["0@7:7-7:8", "0@8:17-8:20"] "callees": ["0@7:7-7:8", "0@8:17-8:20"]
@ -46,8 +44,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:constructor.cc@56@F@foo#@f", "usr": "c:constructor.cc@56@F@foo#@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "Foo f",
"hover": "Foo",
"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,
@ -56,8 +53,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:constructor.cc@66@F@foo#@f2", "usr": "c:constructor.cc@66@F@foo#@f2",
"short_name": "f2", "short_name": "f2",
"qualified_name": "f2", "qualified_name": "Foo * f2",
"hover": "Foo *",
"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,

View File

@ -31,8 +31,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@Foo#", "usr": "c:@S@Foo@F@Foo#",
"short_name": "Foo", "short_name": "Foo",
"qualified_name": "Foo::Foo", "qualified_name": "void Foo::Foo()",
"hover": "void ()",
"definition_spelling": "3:3-3:6", "definition_spelling": "3:3-3:6",
"definition_extent": "3:3-3:11", "definition_extent": "3:3-3:11",
"declaring_type": 0, "declaring_type": 0,
@ -41,8 +40,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@S@Foo@F@~Foo#", "usr": "c:@S@Foo@F@~Foo#",
"short_name": "~Foo", "short_name": "~Foo",
"hover": "void () noexcept", "qualified_name": "void Foo::~Foo() noexcept",
"qualified_name": "Foo::~Foo",
"definition_spelling": "4:3-4:7", "definition_spelling": "4:3-4:7",
"definition_extent": "4:3-4:12", "definition_extent": "4:3-4:12",
"declaring_type": 0 "declaring_type": 0
@ -50,8 +48,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "7:6-7:9", "definition_spelling": "7:6-7:9",
"definition_extent": "7:1-9:2", "definition_extent": "7:1-9:2",
"callees": ["0@8:7-8:8"] "callees": ["0@8:7-8:8"]
@ -60,8 +57,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:destructor.cc@70@F@foo#@f", "usr": "c:destructor.cc@70@F@foo#@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "Foo f",
"hover": "Foo",
"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,

View File

@ -20,8 +20,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@FT@>1#TFoo#v#", "usr": "c:@S@Foo@FT@>1#TFoo#v#",
"short_name": "Foo", "short_name": "Foo",
"qualified_name": "Foo::Foo", "qualified_name": "void Foo::Foo()",
"hover": "void ()",
"definition_spelling": "4:6-4:9", "definition_spelling": "4:6-4:9",
"definition_extent": "4:1-4:11", "definition_extent": "4:1-4:11",
"declaring_type": 0 "declaring_type": 0

View File

@ -19,8 +19,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@FI@foo", "usr": "c:@S@Foo@FI@foo",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Foo::foo", "qualified_name": "int Foo::foo",
"hover": "int",
"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,

View File

@ -21,8 +21,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@foo", "usr": "c:@S@Foo@foo",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Foo::foo", "qualified_name": "int Foo::foo",
"hover": "int",
"declaration": "2:14-2:17", "declaration": "2:14-2:17",
"definition_spelling": "5:10-5:13", "definition_spelling": "5:10-5:13",
"definition_extent": "5:1-5:13", "definition_extent": "5:1-5:13",

View File

@ -11,8 +11,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"declarations": ["1:6-1:9", "2:6-2:9", "4:6-4:9"], "declarations": ["1:6-1:9", "2:6-2:9", "4:6-4:9"],
"definition_spelling": "3:6-3:9", "definition_spelling": "3:6-3:9",
"definition_extent": "3:1-3:14" "definition_extent": "3:1-3:14"

View File

@ -23,24 +23,21 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@declonly#", "usr": "c:@S@Foo@F@declonly#",
"short_name": "declonly", "short_name": "declonly",
"qualified_name": "Foo::declonly", "qualified_name": "void Foo::declonly()",
"hover": "void ()",
"declarations": ["2:8-2:16"], "declarations": ["2:8-2:16"],
"declaring_type": 0 "declaring_type": 0
}, { }, {
"id": 1, "id": 1,
"usr": "c:@S@Foo@F@purevirtual#", "usr": "c:@S@Foo@F@purevirtual#",
"short_name": "purevirtual", "short_name": "purevirtual",
"qualified_name": "Foo::purevirtual", "qualified_name": "void Foo::purevirtual()",
"hover": "void ()",
"declarations": ["3:16-3:27"], "declarations": ["3:16-3:27"],
"declaring_type": 0 "declaring_type": 0
}, { }, {
"id": 2, "id": 2,
"usr": "c:@S@Foo@F@def#", "usr": "c:@S@Foo@F@def#",
"short_name": "def", "short_name": "def",
"qualified_name": "Foo::def", "qualified_name": "void Foo::def()",
"hover": "void ()",
"declarations": ["4:8-4:11"], "declarations": ["4:8-4:11"],
"definition_spelling": "7:11-7:14", "definition_spelling": "7:11-7:14",
"definition_extent": "7:1-7:19", "definition_extent": "7:1-7:19",

View File

@ -20,8 +20,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@E@Foo@A", "usr": "c:@E@Foo@A",
"short_name": "A", "short_name": "A",
"qualified_name": "Foo::A", "qualified_name": "Foo Foo::A",
"hover": "Foo",
"definition_spelling": "2:3-2:4", "definition_spelling": "2:3-2:4",
"definition_extent": "2:3-2:4", "definition_extent": "2:3-2:4",
"variable_type": 0, "variable_type": 0,
@ -31,8 +30,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@E@Foo@B", "usr": "c:@E@Foo@B",
"short_name": "B", "short_name": "B",
"qualified_name": "Foo::B", "qualified_name": "Foo Foo::B",
"hover": "Foo",
"definition_spelling": "3:3-3:4", "definition_spelling": "3:3-3:4",
"definition_extent": "3:3-3:9", "definition_extent": "3:3-3:9",
"variable_type": 0, "variable_type": 0,

View File

@ -20,8 +20,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@E@Foo@A", "usr": "c:@E@Foo@A",
"short_name": "A", "short_name": "A",
"qualified_name": "Foo::A", "qualified_name": "Foo Foo::A",
"hover": "Foo",
"definition_spelling": "2:3-2:4", "definition_spelling": "2:3-2:4",
"definition_extent": "2:3-2:4", "definition_extent": "2:3-2:4",
"variable_type": 0, "variable_type": 0,
@ -31,8 +30,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@E@Foo@B", "usr": "c:@E@Foo@B",
"short_name": "B", "short_name": "B",
"qualified_name": "Foo::B", "qualified_name": "Foo Foo::B",
"hover": "Foo",
"definition_spelling": "3:3-3:4", "definition_spelling": "3:3-3:4",
"definition_extent": "3:3-3:9", "definition_extent": "3:3-3:9",
"variable_type": 0, "variable_type": 0,

View File

@ -20,8 +20,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@E@Foo@A", "usr": "c:@E@Foo@A",
"short_name": "A", "short_name": "A",
"qualified_name": "Foo::A", "qualified_name": "Foo Foo::A",
"hover": "Foo",
"definition_spelling": "2:3-2:4", "definition_spelling": "2:3-2:4",
"definition_extent": "2:3-2:4", "definition_extent": "2:3-2:4",
"variable_type": 0, "variable_type": 0,
@ -31,8 +30,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@E@Foo@B", "usr": "c:@E@Foo@B",
"short_name": "B", "short_name": "B",
"qualified_name": "Foo::B", "qualified_name": "Foo Foo::B",
"hover": "Foo",
"definition_spelling": "3:3-3:4", "definition_spelling": "3:3-3:4",
"definition_extent": "3:3-3:9", "definition_extent": "3:3-3:9",
"variable_type": 0, "variable_type": 0,

View File

@ -23,8 +23,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@E@Foo@A", "usr": "c:@E@Foo@A",
"short_name": "A", "short_name": "A",
"qualified_name": "Foo::A", "qualified_name": "Foo Foo::A",
"hover": "Foo",
"definition_spelling": "2:3-2:4", "definition_spelling": "2:3-2:4",
"definition_extent": "2:3-2:4", "definition_extent": "2:3-2:4",
"variable_type": 0, "variable_type": 0,
@ -34,8 +33,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@E@Foo@B", "usr": "c:@E@Foo@B",
"short_name": "B", "short_name": "B",
"qualified_name": "Foo::B", "qualified_name": "Foo Foo::B",
"hover": "Foo",
"definition_spelling": "3:3-3:4", "definition_spelling": "3:3-3:4",
"definition_extent": "3:3-3:9", "definition_extent": "3:3-3:9",
"variable_type": 0, "variable_type": 0,
@ -45,8 +43,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@x", "usr": "c:@x",
"short_name": "x", "short_name": "x",
"qualified_name": "x", "qualified_name": "Foo x",
"hover": "Foo",
"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,

View File

@ -50,8 +50,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@a", "usr": "c:@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "Foo<A>::Inner a",
"hover": "Foo<A>::Inner",
"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,
@ -60,8 +59,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@b", "usr": "c:@b",
"short_name": "b", "short_name": "b",
"qualified_name": "b", "qualified_name": "Foo<B> b",
"hover": "Foo<B>",
"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,

View File

@ -7,8 +7,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#I#I#", "usr": "c:@F@foo#I#I#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo(int, int)",
"hover": "void (int, int)",
"declarations": ["1:6-1:9"] "declarations": ["1:6-1:9"]
}] }]
} }

View File

@ -9,8 +9,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"declarations": ["1:6-1:9"], "declarations": ["1:6-1:9"],
"definition_spelling": "3:6-3:9", "definition_spelling": "3:6-3:9",
"definition_extent": "3:1-3:14" "definition_extent": "3:1-3:14"

View File

@ -7,8 +7,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "1:6-1:9", "definition_spelling": "1:6-1:9",
"definition_extent": "1:1-1:14" "definition_extent": "1:1-1:14"
}] }]

View File

@ -33,8 +33,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Root@F@foo#", "usr": "c:@S@Root@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Root::foo", "qualified_name": "void Root::foo()",
"hover": "void ()",
"declarations": ["2:16-2:19"], "declarations": ["2:16-2:19"],
"declaring_type": 0, "declaring_type": 0,
"derived": [1] "derived": [1]
@ -42,8 +41,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@S@Derived@F@foo#", "usr": "c:@S@Derived@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Derived::foo", "qualified_name": "void Derived::foo()",
"hover": "void ()",
"definition_spelling": "5:8-5:11", "definition_spelling": "5:8-5:11",
"definition_extent": "5:3-5:25", "definition_extent": "5:3-5:25",
"declaring_type": 1, "declaring_type": 1,

View File

@ -19,8 +19,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@IFoo@F@foo#", "usr": "c:@S@IFoo@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "IFoo::foo", "qualified_name": "void IFoo::foo()",
"hover": "void ()",
"definition_spelling": "2:16-2:19", "definition_spelling": "2:16-2:19",
"definition_extent": "2:3-2:28", "definition_extent": "2:3-2:28",
"declaring_type": 0 "declaring_type": 0

View File

@ -23,8 +23,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@foo#", "usr": "c:@S@Foo@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Foo::foo", "qualified_name": "void Foo::foo()",
"hover": "void ()",
"declarations": ["2:8-2:11"], "declarations": ["2:8-2:11"],
"declaring_type": 0 "declaring_type": 0
}] }]

View File

@ -21,8 +21,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@foo#", "usr": "c:@S@Foo@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Foo::foo", "qualified_name": "void Foo::foo()",
"hover": "void ()",
"declarations": ["2:8-2:11"], "declarations": ["2:8-2:11"],
"definition_spelling": "5:11-5:14", "definition_spelling": "5:11-5:14",
"definition_extent": "5:1-5:19", "definition_extent": "5:1-5:19",

View File

@ -19,8 +19,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@foo#", "usr": "c:@S@Foo@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Foo::foo", "qualified_name": "void Foo::foo()",
"hover": "void ()",
"definition_spelling": "2:8-2:11", "definition_spelling": "2:8-2:11",
"definition_extent": "2:3-2:16", "definition_extent": "2:3-2:16",
"declaring_type": 0 "declaring_type": 0

View File

@ -56,8 +56,7 @@ OUTPUT: header.h
"id": 0, "id": 0,
"usr": "c:@FT@>1#TFoo1#v#", "usr": "c:@FT@>1#TFoo1#v#",
"short_name": "Foo1", "short_name": "Foo1",
"qualified_name": "Foo1", "qualified_name": "void Foo1()",
"hover": "void ()",
"definition_spelling": "10:6-10:10", "definition_spelling": "10:6-10:10",
"definition_extent": "10:1-10:15" "definition_extent": "10:1-10:15"
}], }],
@ -65,8 +64,7 @@ OUTPUT: header.h
"id": 0, "id": 0,
"usr": "c:@E@Foo3@A", "usr": "c:@E@Foo3@A",
"short_name": "A", "short_name": "A",
"qualified_name": "Foo3::A", "qualified_name": "Foo3 Foo3::A",
"hover": "Foo3",
"definition_spelling": "15:13-15:14", "definition_spelling": "15:13-15:14",
"definition_extent": "15:13-15:14", "definition_extent": "15:13-15:14",
"variable_type": 4, "variable_type": 4,
@ -76,8 +74,7 @@ OUTPUT: header.h
"id": 1, "id": 1,
"usr": "c:@E@Foo3@B", "usr": "c:@E@Foo3@B",
"short_name": "B", "short_name": "B",
"qualified_name": "Foo3::B", "qualified_name": "Foo3 Foo3::B",
"hover": "Foo3",
"definition_spelling": "15:16-15:17", "definition_spelling": "15:16-15:17",
"definition_extent": "15:16-15:17", "definition_extent": "15:16-15:17",
"variable_type": 4, "variable_type": 4,
@ -87,8 +84,7 @@ OUTPUT: header.h
"id": 2, "id": 2,
"usr": "c:@E@Foo3@C", "usr": "c:@E@Foo3@C",
"short_name": "C", "short_name": "C",
"qualified_name": "Foo3::C", "qualified_name": "Foo3 Foo3::C",
"hover": "Foo3",
"definition_spelling": "15:19-15:20", "definition_spelling": "15:19-15:20",
"definition_extent": "15:19-15:20", "definition_extent": "15:19-15:20",
"variable_type": 4, "variable_type": 4,
@ -98,8 +94,7 @@ OUTPUT: header.h
"id": 3, "id": 3,
"usr": "c:@Foo4", "usr": "c:@Foo4",
"short_name": "Foo4", "short_name": "Foo4",
"qualified_name": "Foo4", "qualified_name": "int Foo4",
"hover": "int",
"definition_spelling": "17:5-17:9", "definition_spelling": "17:5-17:9",
"definition_extent": "17:1-17:9", "definition_extent": "17:1-17:9",
"uses": ["17:5-17:9"] "uses": ["17:5-17:9"]
@ -107,14 +102,12 @@ OUTPUT: header.h
"id": 4, "id": 4,
"usr": "c:header.h@Foo5", "usr": "c:header.h@Foo5",
"short_name": "Foo5", "short_name": "Foo5",
"qualified_name": "Foo5", "qualified_name": "int Foo5",
"hover": "int",
"definition_spelling": "18:12-18:16", "definition_spelling": "18:12-18:16",
"definition_extent": "18:1-18:16", "definition_extent": "18:1-18:16",
"uses": ["18:12-18:16"] "uses": ["18:12-18:16"]
}] }]
} }
OUTPUT: impl.cc OUTPUT: impl.cc
{ {
"dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/header.h"], "dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/header.h"],
@ -122,8 +115,7 @@ OUTPUT: impl.cc
"id": 0, "id": 0,
"usr": "c:@F@Impl#", "usr": "c:@F@Impl#",
"short_name": "Impl", "short_name": "Impl",
"qualified_name": "Impl", "qualified_name": "void Impl()",
"hover": "void ()",
"definition_spelling": "3:6-3:10", "definition_spelling": "3:6-3:10",
"definition_extent": "3:1-5:2", "definition_extent": "3:1-5:2",
"callees": ["1@4:3-4:7"] "callees": ["1@4:3-4:7"]

View File

@ -11,12 +11,10 @@ OUTPUT: simple_header.h
"id": 0, "id": 0,
"usr": "c:@F@header#", "usr": "c:@F@header#",
"short_name": "header", "short_name": "header",
"qualified_name": "header", "qualified_name": "void header()",
"hover": "void ()",
"declarations": ["3:6-3:12"] "declarations": ["3:6-3:12"]
}] }]
} }
OUTPUT: simple_impl.cc OUTPUT: simple_impl.cc
{ {
"dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/simple_header.h"], "dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/simple_header.h"],
@ -24,8 +22,7 @@ OUTPUT: simple_impl.cc
"id": 0, "id": 0,
"usr": "c:@F@impl#", "usr": "c:@F@impl#",
"short_name": "impl", "short_name": "impl",
"qualified_name": "impl", "qualified_name": "void impl()",
"hover": "void ()",
"definition_spelling": "3:6-3:10", "definition_spelling": "3:6-3:10",
"definition_extent": "3:1-5:2", "definition_extent": "3:1-5:2",
"callees": ["1@4:3-4:9"] "callees": ["1@4:3-4:9"]

View File

@ -19,13 +19,11 @@ OUTPUT: static.h
"id": 0, "id": 0,
"usr": "c:@S@Buffer@F@CreateSharedBuffer#S", "usr": "c:@S@Buffer@F@CreateSharedBuffer#S",
"short_name": "CreateSharedBuffer", "short_name": "CreateSharedBuffer",
"qualified_name": "Buffer::CreateSharedBuffer", "qualified_name": "void Buffer::CreateSharedBuffer()",
"hover": "void ()",
"declarations": ["4:15-4:33"], "declarations": ["4:15-4:33"],
"declaring_type": 0 "declaring_type": 0
}] }]
} }
OUTPUT: static.cc OUTPUT: static.cc
{ {
"dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/static.h"], "dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/static.h"],
@ -39,8 +37,7 @@ OUTPUT: static.cc
"id": 0, "id": 0,
"usr": "c:@S@Buffer@F@CreateSharedBuffer#S", "usr": "c:@S@Buffer@F@CreateSharedBuffer#S",
"short_name": "CreateSharedBuffer", "short_name": "CreateSharedBuffer",
"qualified_name": "Buffer::CreateSharedBuffer", "qualified_name": "void Buffer::CreateSharedBuffer()",
"hover": "void ()",
"definition_spelling": "3:14-3:32", "definition_spelling": "3:14-3:32",
"definition_extent": "3:1-3:37", "definition_extent": "3:1-3:37",
"declaring_type": 0 "declaring_type": 0

View File

@ -9,8 +9,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:anonymous_function.cc@aN@F@foo#", "usr": "c:anonymous_function.cc@aN@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "::foo", "qualified_name": "void ::foo()",
"hover": "void ()",
"declarations": ["2:6-2:9"] "declarations": ["2:6-2:9"]
}] }]
} }

View File

@ -9,8 +9,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@hello@F@foo#I#I#", "usr": "c:@N@hello@F@foo#I#I#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "hello::foo", "qualified_name": "void hello::foo(int, int)",
"hover": "void (int, int)",
"declarations": ["2:6-2:9"] "declarations": ["2:6-2:9"]
}] }]
} }

View File

@ -9,8 +9,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@hello@F@foo#", "usr": "c:@N@hello@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "hello::foo", "qualified_name": "void hello::foo()",
"hover": "void ()",
"definition_spelling": "2:6-2:9", "definition_spelling": "2:6-2:9",
"definition_extent": "2:1-2:14" "definition_extent": "2:1-2:14"
}] }]

View File

@ -21,8 +21,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@hello@S@Foo@F@foo#", "usr": "c:@N@hello@S@Foo@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "hello::Foo::foo", "qualified_name": "void hello::Foo::foo()",
"hover": "void ()",
"declarations": ["3:8-3:11"], "declarations": ["3:8-3:11"],
"declaring_type": 0 "declaring_type": 0
}] }]

View File

@ -23,8 +23,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@hello@S@Foo@F@foo#", "usr": "c:@N@hello@S@Foo@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "hello::Foo::foo", "qualified_name": "void hello::Foo::foo()",
"hover": "void ()",
"declarations": ["3:8-3:11"], "declarations": ["3:8-3:11"],
"definition_spelling": "6:11-6:14", "definition_spelling": "6:11-6:14",
"definition_extent": "6:1-6:19", "definition_extent": "6:1-6:19",

View File

@ -21,8 +21,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@hello@S@Foo@F@foo#", "usr": "c:@N@hello@S@Foo@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "hello::Foo::foo", "qualified_name": "void hello::Foo::foo()",
"hover": "void ()",
"definition_spelling": "3:8-3:11", "definition_spelling": "3:8-3:11",
"definition_extent": "3:3-3:16", "definition_extent": "3:3-3:16",
"declaring_type": 0 "declaring_type": 0

View File

@ -16,8 +16,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@ns@F@Accept#I#", "usr": "c:@N@ns@F@Accept#I#",
"short_name": "Accept", "short_name": "Accept",
"qualified_name": "ns::Accept", "qualified_name": "void ns::Accept(int)",
"hover": "void (int)",
"definition_spelling": "3:8-3:14", "definition_spelling": "3:8-3:14",
"definition_extent": "3:3-3:24", "definition_extent": "3:3-3:24",
"callers": ["1@7:7-7:13", "1@9:3-9:9"] "callers": ["1@7:7-7:13", "1@9:3-9:9"]
@ -25,8 +24,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@F@Runner#", "usr": "c:@F@Runner#",
"short_name": "Runner", "short_name": "Runner",
"qualified_name": "Runner", "qualified_name": "void Runner()",
"hover": "void ()",
"definition_spelling": "6:6-6:12", "definition_spelling": "6:6-6:12",
"definition_extent": "6:1-10:2", "definition_extent": "6:1-10:2",
"callees": ["0@7:7-7:13", "0@9:3-9:9"] "callees": ["0@7:7-7:13", "0@9:3-9:9"]
@ -35,8 +33,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@ns@Foo", "usr": "c:@N@ns@Foo",
"short_name": "Foo", "short_name": "Foo",
"qualified_name": "ns::Foo", "qualified_name": "int ns::Foo",
"hover": "int",
"definition_spelling": "2:7-2:10", "definition_spelling": "2:7-2:10",
"definition_extent": "2:3-2:10", "definition_extent": "2:3-2:10",
"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"]
@ -44,8 +41,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:namespace_reference.cc@42@N@ns@F@Accept#I#@a", "usr": "c:namespace_reference.cc@42@N@ns@F@Accept#I#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "3:19-3:20", "definition_spelling": "3:19-3:20",
"definition_extent": "3:15-3:20", "definition_extent": "3:15-3:20",
"uses": ["3:19-3:20"] "uses": ["3:19-3:20"]

View File

@ -29,8 +29,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@MergeableUpdate@FI@a", "usr": "c:@S@MergeableUpdate@FI@a",
"short_name": "a", "short_name": "a",
"qualified_name": "MergeableUpdate::a", "qualified_name": "int MergeableUpdate::a",
"hover": "int",
"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,
@ -39,8 +38,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@S@MergeableUpdate@FI@b", "usr": "c:@S@MergeableUpdate@FI@b",
"short_name": "b", "short_name": "b",
"qualified_name": "MergeableUpdate::b", "qualified_name": "int MergeableUpdate::b",
"hover": "int",
"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,
@ -49,8 +47,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@S@MergeableUpdate@FI@to_add", "usr": "c:@S@MergeableUpdate@FI@to_add",
"short_name": "to_add", "short_name": "to_add",
"qualified_name": "MergeableUpdate::to_add", "qualified_name": "std::vector<int> MergeableUpdate::to_add",
"hover": "std::vector<int>",
"definition_spelling": "6:20-6:26", "definition_spelling": "6:20-6:26",
"definition_extent": "6:3-6:26", "definition_extent": "6:3-6:26",
"variable_type": 1, "variable_type": 1,

View File

@ -39,16 +39,14 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@LoadCompilationEntriesFromDirectory#&1$@N@std@S@basic_string>#C#$@N@std@S@char_traits>#C#$@N@std@S@allocator>#C#", "usr": "c:@F@LoadCompilationEntriesFromDirectory#&1$@N@std@S@basic_string>#C#$@N@std@S@char_traits>#C#$@N@std@S@allocator>#C#",
"short_name": "LoadCompilationEntriesFromDirectory", "short_name": "LoadCompilationEntriesFromDirectory",
"qualified_name": "LoadCompilationEntriesFromDirectory", "qualified_name": "std::vector<CompilationEntry> LoadCompilationEntriesFromDirectory(const std::string &)",
"hover": "std::vector<CompilationEntry> (const std::string &)",
"declarations": ["12:31-12:66"] "declarations": ["12:31-12:66"]
}], }],
"vars": [{ "vars": [{
"id": 0, "id": 0,
"usr": "c:@S@CompilationEntry@FI@directory", "usr": "c:@S@CompilationEntry@FI@directory",
"short_name": "directory", "short_name": "directory",
"qualified_name": "CompilationEntry::directory", "qualified_name": "std::string CompilationEntry::directory",
"hover": "std::string",
"definition_spelling": "7:15-7:24", "definition_spelling": "7:15-7:24",
"definition_extent": "7:3-7:24", "definition_extent": "7:3-7:24",
"variable_type": 1, "variable_type": 1,
@ -58,8 +56,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@S@CompilationEntry@FI@filename", "usr": "c:@S@CompilationEntry@FI@filename",
"short_name": "filename", "short_name": "filename",
"qualified_name": "CompilationEntry::filename", "qualified_name": "std::string CompilationEntry::filename",
"hover": "std::string",
"definition_spelling": "8:15-8:23", "definition_spelling": "8:15-8:23",
"definition_extent": "8:3-8:23", "definition_extent": "8:3-8:23",
"variable_type": 1, "variable_type": 1,
@ -69,8 +66,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@S@CompilationEntry@FI@args", "usr": "c:@S@CompilationEntry@FI@args",
"short_name": "args", "short_name": "args",
"qualified_name": "CompilationEntry::args", "qualified_name": "std::vector<std::string> CompilationEntry::args",
"hover": "std::vector<std::string>",
"definition_spelling": "9:28-9:32", "definition_spelling": "9:28-9:32",
"definition_extent": "9:3-9:32", "definition_extent": "9:3-9:32",
"variable_type": 2, "variable_type": 2,

View File

@ -32,8 +32,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@Bar#&$@S@Template>#d#", "usr": "c:@S@Foo@F@Bar#&$@S@Template>#d#",
"short_name": "Bar", "short_name": "Bar",
"qualified_name": "Foo::Bar", "qualified_name": "void Foo::Bar(Template<double> &)",
"hover": "void (Template<double> &)",
"declarations": ["5:8-5:11"], "declarations": ["5:8-5:11"],
"definition_spelling": "8:11-8:14", "definition_spelling": "8:11-8:14",
"definition_extent": "8:1-8:36", "definition_extent": "8:1-8:36",

View File

@ -40,8 +40,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@ns@ST>1#T@Holder@static_var", "usr": "c:@N@ns@ST>1#T@Holder@static_var",
"short_name": "static_var", "short_name": "static_var",
"qualified_name": "ns::Holder::static_var", "qualified_name": "const ns::VarType ns::Holder::static_var",
"hover": "const ns::VarType",
"declaration": "6:30-6:40", "declaration": "6:30-6:40",
"definition_spelling": "10:37-10:47", "definition_spelling": "10:37-10:47",
"definition_extent": "9:3-10:47", "definition_extent": "9:3-10:47",
@ -52,8 +51,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@N@ns@Foo", "usr": "c:@N@ns@Foo",
"short_name": "Foo", "short_name": "Foo",
"qualified_name": "ns::Foo", "qualified_name": "int ns::Foo",
"hover": "int",
"definition_spelling": "13:7-13:10", "definition_spelling": "13:7-13:10",
"definition_extent": "13:3-13:36", "definition_extent": "13:3-13:36",
"uses": ["13:7-13:10"] "uses": ["13:7-13:10"]
@ -61,8 +59,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@N@ns@Foo2", "usr": "c:@N@ns@Foo2",
"short_name": "Foo2", "short_name": "Foo2",
"qualified_name": "ns::Foo2", "qualified_name": "int ns::Foo2",
"hover": "int",
"definition_spelling": "14:7-14:11", "definition_spelling": "14:7-14:11",
"definition_extent": "14:3-14:37", "definition_extent": "14:3-14:37",
"uses": ["14:7-14:11"] "uses": ["14:7-14:11"]

View File

@ -28,8 +28,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@ns@ST>1#T@Foo@FT@>1#Tfoo#I#S", "usr": "c:@N@ns@ST>1#T@Foo@FT@>1#Tfoo#I#S",
"short_name": "foo", "short_name": "foo",
"qualified_name": "ns::Foo::foo", "qualified_name": "int ns::Foo::foo()",
"hover": "int ()",
"definition_spelling": "5:16-5:19", "definition_spelling": "5:16-5:19",
"definition_extent": "5:5-7:6", "definition_extent": "5:5-7:6",
"declaring_type": 0, "declaring_type": 0,
@ -39,8 +38,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@ns@a", "usr": "c:@N@ns@a",
"short_name": "a", "short_name": "a",
"qualified_name": "ns::a", "qualified_name": "int ns::a",
"hover": "int",
"definition_spelling": "10:7-10:8", "definition_spelling": "10:7-10:8",
"definition_extent": "10:3-10:33", "definition_extent": "10:3-10:33",
"uses": ["10:7-10:8"] "uses": ["10:7-10:8"]
@ -48,8 +46,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@N@ns@b", "usr": "c:@N@ns@b",
"short_name": "b", "short_name": "b",
"qualified_name": "ns::b", "qualified_name": "int ns::b",
"hover": "int",
"definition_spelling": "11:7-11:8", "definition_spelling": "11:7-11:8",
"definition_extent": "11:3-11:35", "definition_extent": "11:3-11:35",
"uses": ["11:7-11:8"] "uses": ["11:7-11:8"]

View File

@ -23,8 +23,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@N@ns@a", "usr": "c:@N@ns@a",
"short_name": "a", "short_name": "a",
"qualified_name": "ns::a", "qualified_name": "Foo<int> ns::a",
"hover": "Foo<int>",
"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,
@ -33,8 +32,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@N@ns@b", "usr": "c:@N@ns@b",
"short_name": "b", "short_name": "b",
"qualified_name": "ns::b", "qualified_name": "Foo<bool> ns::b",
"hover": "Foo<bool>",
"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,

View File

@ -29,9 +29,8 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@ST>1#T@Template@F@Foo#", "usr": "c:@ST>1#T@Template@F@Foo#",
"short_name": "Foo", "short_name": "Foo",
"qualified_name": "Template::Foo", "qualified_name": "void Template::Foo()",
"declarations": ["3:8-3:11", "9:22-9:25"], "declarations": ["3:8-3:11", "9:22-9:25"],
"hover": "void ()",
"definition_spelling": "7:19-7:22", "definition_spelling": "7:19-7:22",
"definition_extent": "6:1-7:24", "definition_extent": "6:1-7:24",
"declaring_type": 0 "declaring_type": 0

View File

@ -25,8 +25,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@ST>1#T@Foo@F@foo#S", "usr": "c:@ST>1#T@Foo@F@foo#S",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Foo::foo", "qualified_name": "int Foo::foo()",
"hover": "int ()",
"definition_spelling": "3:14-3:17", "definition_spelling": "3:14-3:17",
"definition_extent": "3:3-5:4", "definition_extent": "3:3-5:4",
"declaring_type": 0, "declaring_type": 0,
@ -36,8 +35,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@a", "usr": "c:@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "8:5-8:6", "definition_spelling": "8:5-8:6",
"definition_extent": "8:1-8:24", "definition_extent": "8:1-8:24",
"uses": ["8:5-8:6"] "uses": ["8:5-8:6"]
@ -45,8 +43,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@b", "usr": "c:@b",
"short_name": "b", "short_name": "b",
"qualified_name": "b", "qualified_name": "int b",
"hover": "int",
"definition_spelling": "9:5-9:6", "definition_spelling": "9:5-9:6",
"definition_extent": "9:1-9:25", "definition_extent": "9:1-9:25",
"uses": ["9:5-9:6"] "uses": ["9:5-9:6"]

View File

@ -26,8 +26,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@ST>1#T@Foo@FT@>1#Tfoo#I#S", "usr": "c:@ST>1#T@Foo@FT@>1#Tfoo#I#S",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Foo::foo", "qualified_name": "int Foo::foo()",
"hover": "int ()",
"definition_spelling": "4:14-4:17", "definition_spelling": "4:14-4:17",
"definition_extent": "4:3-6:4", "definition_extent": "4:3-6:4",
"declaring_type": 0, "declaring_type": 0,
@ -37,8 +36,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@a", "usr": "c:@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "9:5-9:6", "definition_spelling": "9:5-9:6",
"definition_extent": "9:1-9:31", "definition_extent": "9:1-9:31",
"uses": ["9:5-9:6"] "uses": ["9:5-9:6"]
@ -46,8 +44,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@b", "usr": "c:@b",
"short_name": "b", "short_name": "b",
"qualified_name": "b", "qualified_name": "int b",
"hover": "int",
"definition_spelling": "10:5-10:6", "definition_spelling": "10:5-10:6",
"definition_extent": "10:1-10:33", "definition_extent": "10:1-10:33",
"uses": ["10:5-10:6"] "uses": ["10:5-10:6"]

View File

@ -68,8 +68,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@a", "usr": "c:@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "Foo<A>::Inner a",
"hover": "Foo<A>::Inner",
"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,
@ -78,8 +77,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@b", "usr": "c:@b",
"short_name": "b", "short_name": "b",
"qualified_name": "b", "qualified_name": "Foo<B>::Inner b",
"hover": "Foo<B>::Inner",
"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,

View File

@ -22,16 +22,14 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@ST>1#T@Foo@var", "usr": "c:@ST>1#T@Foo@var",
"short_name": "var", "short_name": "var",
"qualified_name": "Foo::var", "qualified_name": "const int Foo::var",
"hover": "const int",
"declaration": "3:24-3:27", "declaration": "3:24-3:27",
"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,
"usr": "c:@a", "usr": "c:@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "6:5-6:6", "definition_spelling": "6:5-6:6",
"definition_extent": "6:1-6:22", "definition_extent": "6:1-6:22",
"uses": ["6:5-6:6"] "uses": ["6:5-6:6"]
@ -39,8 +37,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@b", "usr": "c:@b",
"short_name": "b", "short_name": "b",
"qualified_name": "b", "qualified_name": "int b",
"hover": "int",
"definition_spelling": "7:5-7:6", "definition_spelling": "7:5-7:6",
"definition_extent": "7:1-7:23", "definition_extent": "7:1-7:23",
"uses": ["7:5-7:6"] "uses": ["7:5-7:6"]

View File

@ -16,8 +16,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:template_func_usage_folded_into_one.cc@FT@>1#Tfoo#I#", "usr": "c:template_func_usage_folded_into_one.cc@FT@>1#Tfoo#I#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "int foo()",
"hover": "int ()",
"definition_spelling": "2:12-2:15", "definition_spelling": "2:12-2:15",
"definition_extent": "2:1-4:2", "definition_extent": "2:1-4:2",
"callers": ["-1@6:9-6:12", "-1@7:9-7:12"] "callers": ["-1@6:9-6:12", "-1@7:9-7:12"]
@ -26,8 +25,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@a", "usr": "c:@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "6:5-6:6", "definition_spelling": "6:5-6:6",
"definition_extent": "6:1-6:19", "definition_extent": "6:1-6:19",
"uses": ["6:5-6:6"] "uses": ["6:5-6:6"]
@ -35,8 +33,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@b", "usr": "c:@b",
"short_name": "b", "short_name": "b",
"qualified_name": "b", "qualified_name": "int b",
"hover": "int",
"definition_spelling": "7:5-7:6", "definition_spelling": "7:5-7:6",
"definition_extent": "7:1-7:20", "definition_extent": "7:1-7:20",
"uses": ["7:5-7:6"] "uses": ["7:5-7:6"]

View File

@ -21,8 +21,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@a", "usr": "c:@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "Foo<int> a",
"hover": "Foo<int>",
"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,
@ -31,8 +30,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@b", "usr": "c:@b",
"short_name": "b", "short_name": "b",
"qualified_name": "b", "qualified_name": "Foo<bool> b",
"hover": "Foo<bool>",
"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,

View File

@ -55,8 +55,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@VT>1#T@var", "usr": "c:@VT>1#T@var",
"short_name": "var", "short_name": "var",
"qualified_name": "var", "qualified_name": "T var",
"hover": "T",
"definition_spelling": "5:3-5:6", "definition_spelling": "5:3-5:6",
"definition_extent": "5:1-5:10", "definition_extent": "5:1-5:10",
"uses": ["5:3-5:6", "7:9-7:12", "8:9-8:12"] "uses": ["5:3-5:6", "7:9-7:12", "8:9-8:12"]
@ -64,8 +63,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@a", "usr": "c:@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "7:5-7:6", "definition_spelling": "7:5-7:6",
"definition_extent": "7:1-7:15", "definition_extent": "7:1-7:15",
"uses": ["7:5-7:6"] "uses": ["7:5-7:6"]
@ -73,8 +71,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@b", "usr": "c:@b",
"short_name": "b", "short_name": "b",
"qualified_name": "b", "qualified_name": "int b",
"hover": "int",
"definition_spelling": "8:5-8:6", "definition_spelling": "8:5-8:6",
"definition_extent": "8:1-8:15", "definition_extent": "8:1-8:15",
"uses": ["8:5-8:6"] "uses": ["8:5-8:6"]

View File

@ -29,8 +29,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@U@vector3@Sa@FI@x", "usr": "c:@U@vector3@Sa@FI@x",
"short_name": "x", "short_name": "x",
"qualified_name": "x", "qualified_name": "float x",
"hover": "float",
"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,
@ -39,8 +38,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@U@vector3@Sa@FI@y", "usr": "c:@U@vector3@Sa@FI@y",
"short_name": "y", "short_name": "y",
"qualified_name": "y", "qualified_name": "float y",
"hover": "float",
"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,
@ -49,8 +47,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@U@vector3@Sa@FI@z", "usr": "c:@U@vector3@Sa@FI@z",
"short_name": "z", "short_name": "z",
"qualified_name": "z", "qualified_name": "float z",
"hover": "float",
"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,
@ -59,8 +56,7 @@ OUTPUT:
"id": 3, "id": 3,
"usr": "c:@U@vector3@FI@v", "usr": "c:@U@vector3@FI@v",
"short_name": "v", "short_name": "v",
"qualified_name": "vector3::v", "qualified_name": "float [3] vector3::v",
"hover": "float [3]",
"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,

View File

@ -20,8 +20,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@U@Foo@FI@a", "usr": "c:@U@Foo@FI@a",
"short_name": "a", "short_name": "a",
"qualified_name": "Foo::a", "qualified_name": "int Foo::a",
"hover": "int",
"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,
@ -30,8 +29,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@U@Foo@FI@b", "usr": "c:@U@Foo@FI@b",
"short_name": "b", "short_name": "b",
"qualified_name": "Foo::b", "qualified_name": "bool Foo::b",
"hover": "bool",
"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,

View File

@ -29,8 +29,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@act#*$@U@Foo#", "usr": "c:@F@act#*$@U@Foo#",
"short_name": "act", "short_name": "act",
"qualified_name": "act", "qualified_name": "void act(Foo *)",
"hover": "void (Foo *)",
"definition_spelling": "8:6-8:9", "definition_spelling": "8:6-8:9",
"definition_extent": "8:1-10:2" "definition_extent": "8:1-10:2"
}], }],
@ -38,8 +37,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@U@Foo@FI@a", "usr": "c:@U@Foo@FI@a",
"short_name": "a", "short_name": "a",
"qualified_name": "Foo::a", "qualified_name": "int Foo::a",
"hover": "int",
"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,
@ -48,8 +46,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@U@Foo@FI@b", "usr": "c:@U@Foo@FI@b",
"short_name": "b", "short_name": "b",
"qualified_name": "Foo::b", "qualified_name": "bool Foo::b",
"hover": "bool",
"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,
@ -58,8 +55,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@f", "usr": "c:@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "Foo f",
"hover": "Foo",
"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,

View File

@ -25,8 +25,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@called#", "usr": "c:@F@called#",
"short_name": "called", "short_name": "called",
"qualified_name": "called", "qualified_name": "void called()",
"hover": "void ()",
"definition_spelling": "1:6-1:12", "definition_spelling": "1:6-1:12",
"definition_extent": "1:1-1:17", "definition_extent": "1:1-1:17",
"callers": ["1@8:3-8:9"] "callers": ["1@8:3-8:9"]
@ -34,8 +33,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@S@Foo@F@Foo#", "usr": "c:@S@Foo@F@Foo#",
"short_name": "Foo", "short_name": "Foo",
"qualified_name": "Foo::Foo", "qualified_name": "void Foo::Foo()",
"hover": "void ()",
"declarations": ["4:3-4:6"], "declarations": ["4:3-4:6"],
"definition_spelling": "7:6-7:9", "definition_spelling": "7:6-7:9",
"definition_extent": "7:1-9:2", "definition_extent": "7:1-9:2",

View File

@ -13,16 +13,14 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@called#b#b#", "usr": "c:@F@called#b#b#",
"short_name": "called", "short_name": "called",
"qualified_name": "called", "qualified_name": "bool called(bool, bool)",
"hover": "bool (bool, bool)",
"declarations": ["3:6-3:12"], "declarations": ["3:6-3:12"],
"callers": ["1@6:14-6:20"] "callers": ["1@6:14-6:20"]
}, { }, {
"id": 1, "id": 1,
"usr": "c:@F@caller#", "usr": "c:@F@caller#",
"short_name": "caller", "short_name": "caller",
"qualified_name": "caller", "qualified_name": "void caller()",
"hover": "void ()",
"definition_spelling": "5:6-5:12", "definition_spelling": "5:6-5:12",
"definition_extent": "5:1-7:2", "definition_extent": "5:1-7:2",
"callees": ["0@6:14-6:20"] "callees": ["0@6:14-6:20"]

View File

@ -18,16 +18,14 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@called#", "usr": "c:@F@called#",
"short_name": "called", "short_name": "called",
"qualified_name": "called", "qualified_name": "void called()",
"hover": "void ()",
"declarations": ["1:6-1:12"], "declarations": ["1:6-1:12"],
"callers": ["1@5:3-5:9"] "callers": ["1@5:3-5:9"]
}, { }, {
"id": 1, "id": 1,
"usr": "c:@FT@>1#Tcaller#v#", "usr": "c:@FT@>1#Tcaller#v#",
"short_name": "caller", "short_name": "caller",
"qualified_name": "caller", "qualified_name": "void caller()",
"hover": "void ()",
"definition_spelling": "4:6-4:12", "definition_spelling": "4:6-4:12",
"definition_extent": "4:1-6:2", "definition_extent": "4:1-6:2",
"callers": ["2@9:3-9:9"], "callers": ["2@9:3-9:9"],
@ -36,8 +34,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "8:6-8:9", "definition_spelling": "8:6-8:9",
"definition_extent": "8:1-10:2", "definition_extent": "8:1-10:2",
"callees": ["1@9:3-9:9"] "callees": ["1@9:3-9:9"]

View File

@ -25,8 +25,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Wrapper@F@Wrapper#I#", "usr": "c:@S@Wrapper@F@Wrapper#I#",
"short_name": "Wrapper", "short_name": "Wrapper",
"qualified_name": "Wrapper::Wrapper", "qualified_name": "void Wrapper::Wrapper(int)",
"hover": "void (int)",
"declarations": ["2:3-2:10"], "declarations": ["2:3-2:10"],
"declaring_type": 0, "declaring_type": 0,
"callers": ["2@8:10-8:16"] "callers": ["2@8:10-8:16"]
@ -34,8 +33,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@F@called#", "usr": "c:@F@called#",
"short_name": "called", "short_name": "called",
"qualified_name": "called", "qualified_name": "int called()",
"hover": "int ()",
"definition_spelling": "5:5-5:11", "definition_spelling": "5:5-5:11",
"definition_extent": "5:1-5:27", "definition_extent": "5:1-5:27",
"callers": ["2@8:10-8:16"] "callers": ["2@8:10-8:16"]
@ -43,8 +41,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@F@caller#", "usr": "c:@F@caller#",
"short_name": "caller", "short_name": "caller",
"qualified_name": "caller", "qualified_name": "Wrapper caller()",
"hover": "Wrapper ()",
"definition_spelling": "7:9-7:15", "definition_spelling": "7:9-7:15",
"definition_extent": "7:1-9:2", "definition_extent": "7:1-9:2",
"callees": ["0@8:10-8:16", "1@8:10-8:16"] "callees": ["0@8:10-8:16", "1@8:10-8:16"]

View File

@ -14,8 +14,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@consume#*v#", "usr": "c:@F@consume#*v#",
"short_name": "consume", "short_name": "consume",
"qualified_name": "consume", "qualified_name": "void consume(void *)",
"hover": "void (void *)",
"definition_spelling": "1:6-1:13", "definition_spelling": "1:6-1:13",
"definition_extent": "1:1-1:23", "definition_extent": "1:1-1:23",
"callers": ["2@7:3-7:10"] "callers": ["2@7:3-7:10"]
@ -23,8 +22,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@F@used#", "usr": "c:@F@used#",
"short_name": "used", "short_name": "used",
"qualified_name": "used", "qualified_name": "void used()",
"hover": "void ()",
"definition_spelling": "3:6-3:10", "definition_spelling": "3:6-3:10",
"definition_extent": "3:1-3:15", "definition_extent": "3:1-3:15",
"callers": ["2@6:13-6:17", "2@7:12-7:16"] "callers": ["2@6:13-6:17", "2@7:12-7:16"]
@ -32,8 +30,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@F@user#", "usr": "c:@F@user#",
"short_name": "user", "short_name": "user",
"qualified_name": "user", "qualified_name": "void user()",
"hover": "void ()",
"definition_spelling": "5:6-5:10", "definition_spelling": "5:6-5:10",
"definition_extent": "5:1-8:2", "definition_extent": "5:1-8:2",
"callees": ["1@6:13-6:17", "0@7:3-7:10", "1@7:12-7:16"] "callees": ["1@6:13-6:17", "0@7:3-7:10", "1@7:12-7:16"]
@ -42,8 +39,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:func_usage_addr_func.cc@61@F@user#@x", "usr": "c:func_usage_addr_func.cc@61@F@user#@x",
"short_name": "x", "short_name": "x",
"qualified_name": "x", "qualified_name": "void (*)() x",
"hover": "void (*)()",
"definition_spelling": "6:8-6:9", "definition_spelling": "6:8-6:9",
"definition_extent": "6:3-6:17", "definition_extent": "6:3-6:17",
"uses": ["6:8-6:9"] "uses": ["6:8-6:9"]

View File

@ -24,8 +24,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@Used#", "usr": "c:@S@Foo@F@Used#",
"short_name": "Used", "short_name": "Used",
"qualified_name": "Foo::Used", "qualified_name": "void Foo::Used()",
"hover": "void ()",
"declarations": ["2:8-2:12"], "declarations": ["2:8-2:12"],
"declaring_type": 0, "declaring_type": 0,
"callers": ["1@6:18-6:22"] "callers": ["1@6:18-6:22"]
@ -33,8 +32,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@F@user#", "usr": "c:@F@user#",
"short_name": "user", "short_name": "user",
"qualified_name": "user", "qualified_name": "void user()",
"hover": "void ()",
"definition_spelling": "5:6-5:10", "definition_spelling": "5:6-5:10",
"definition_extent": "5:1-7:2", "definition_extent": "5:1-7:2",
"callees": ["0@6:18-6:22"] "callees": ["0@6:18-6:22"]
@ -43,8 +41,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:func_usage_addr_method.cc@53@F@user#@x", "usr": "c:func_usage_addr_method.cc@53@F@user#@x",
"short_name": "x", "short_name": "x",
"qualified_name": "x", "qualified_name": "void (Foo::*)() x",
"hover": "void (Foo::*)()",
"definition_spelling": "6:8-6:9", "definition_spelling": "6:8-6:9",
"definition_extent": "6:3-6:22", "definition_extent": "6:3-6:22",
"uses": ["6:8-6:9"] "uses": ["6:8-6:9"]

View File

@ -10,8 +10,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@called#", "usr": "c:@F@called#",
"short_name": "called", "short_name": "called",
"qualified_name": "called", "qualified_name": "void called()",
"hover": "void ()",
"definition_spelling": "1:6-1:12", "definition_spelling": "1:6-1:12",
"definition_extent": "1:1-1:17", "definition_extent": "1:1-1:17",
"callers": ["1@3:3-3:9"] "callers": ["1@3:3-3:9"]
@ -19,8 +18,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@F@caller#", "usr": "c:@F@caller#",
"short_name": "caller", "short_name": "caller",
"qualified_name": "caller", "qualified_name": "void caller()",
"hover": "void ()",
"definition_spelling": "2:6-2:12", "definition_spelling": "2:6-2:12",
"definition_extent": "2:1-4:2", "definition_extent": "2:1-4:2",
"callees": ["0@3:3-3:9"] "callees": ["0@3:3-3:9"]

View File

@ -25,8 +25,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@Used#", "usr": "c:@S@Foo@F@Used#",
"short_name": "Used", "short_name": "Used",
"qualified_name": "Foo::Used", "qualified_name": "void Foo::Used()",
"hover": "void ()",
"declarations": ["2:8-2:12"], "declarations": ["2:8-2:12"],
"declaring_type": 0, "declaring_type": 0,
"callers": ["1@7:6-7:10"] "callers": ["1@7:6-7:10"]
@ -34,8 +33,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@F@user#", "usr": "c:@F@user#",
"short_name": "user", "short_name": "user",
"qualified_name": "user", "qualified_name": "void user()",
"hover": "void ()",
"definition_spelling": "5:6-5:10", "definition_spelling": "5:6-5:10",
"definition_extent": "5:1-8:2", "definition_extent": "5:1-8:2",
"callees": ["0@7:6-7:10"] "callees": ["0@7:6-7:10"]
@ -44,8 +42,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:func_usage_call_method.cc@53@F@user#@f", "usr": "c:func_usage_call_method.cc@53@F@user#@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "Foo * f",
"hover": "Foo *",
"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,

View File

@ -23,8 +23,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:func_usage_class_inline_var_def.cc@F@helper#", "usr": "c:func_usage_class_inline_var_def.cc@F@helper#",
"short_name": "helper", "short_name": "helper",
"qualified_name": "helper", "qualified_name": "int helper()",
"hover": "int ()",
"definition_spelling": "1:12-1:18", "definition_spelling": "1:12-1:18",
"definition_extent": "1:1-3:2", "definition_extent": "1:1-3:2",
"callers": ["-1@6:11-6:17"] "callers": ["-1@6:11-6:17"]
@ -33,8 +32,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@FI@x", "usr": "c:@S@Foo@FI@x",
"short_name": "x", "short_name": "x",
"qualified_name": "Foo::x", "qualified_name": "int Foo::x",
"hover": "int",
"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,

View File

@ -10,16 +10,14 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"declarations": ["1:6-1:9"], "declarations": ["1:6-1:9"],
"callers": ["1@4:3-4:6"] "callers": ["1@4:3-4:6"]
}, { }, {
"id": 1, "id": 1,
"usr": "c:@F@usage#", "usr": "c:@F@usage#",
"short_name": "usage", "short_name": "usage",
"qualified_name": "usage", "qualified_name": "void usage()",
"hover": "void ()",
"definition_spelling": "3:6-3:11", "definition_spelling": "3:6-3:11",
"definition_extent": "3:1-5:2", "definition_extent": "3:1-5:2",
"callees": ["0@4:3-4:6"] "callees": ["0@4:3-4:6"]

View File

@ -24,8 +24,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@foo#", "usr": "c:@S@Foo@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Foo::foo", "qualified_name": "void Foo::foo()",
"hover": "void ()",
"declarations": ["2:8-2:11"], "declarations": ["2:8-2:11"],
"declaring_type": 0, "declaring_type": 0,
"callers": ["1@7:6-7:9"] "callers": ["1@7:6-7:9"]
@ -33,8 +32,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@F@usage#", "usr": "c:@F@usage#",
"short_name": "usage", "short_name": "usage",
"qualified_name": "usage", "qualified_name": "void usage()",
"hover": "void ()",
"definition_spelling": "5:6-5:11", "definition_spelling": "5:6-5:11",
"definition_extent": "5:1-8:2", "definition_extent": "5:1-8:2",
"callees": ["0@7:6-7:9"] "callees": ["0@7:6-7:9"]
@ -43,8 +41,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:func_usage_forward_decl_method.cc@53@F@usage#@f", "usr": "c:func_usage_forward_decl_method.cc@53@F@usage#@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "Foo * f",
"hover": "Foo *",
"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,

View File

@ -13,16 +13,14 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@FT@>1#Taccept#t0.0#v#", "usr": "c:@FT@>1#Taccept#t0.0#v#",
"short_name": "accept", "short_name": "accept",
"qualified_name": "accept", "qualified_name": "void accept(T)",
"hover": "void (T)",
"declarations": ["2:6-2:12"], "declarations": ["2:6-2:12"],
"callers": ["1@5:3-5:9", "1@6:3-6:9"] "callers": ["1@5:3-5:9", "1@6:3-6:9"]
}, { }, {
"id": 1, "id": 1,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "4:6-4:9", "definition_spelling": "4:6-4:9",
"definition_extent": "4:1-7:2", "definition_extent": "4:1-7:2",
"callees": ["0@5:3-5:9", "0@6:3-6:9"] "callees": ["0@5:3-5:9", "0@6:3-6:9"]

View File

@ -31,8 +31,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@return_type#", "usr": "c:@F@return_type#",
"short_name": "return_type", "short_name": "return_type",
"qualified_name": "return_type", "qualified_name": "unique_ptr<S> *return_type()",
"hover": "unique_ptr<S> *()",
"definition_spelling": "9:16-9:27", "definition_spelling": "9:16-9:27",
"definition_extent": "9:1-12:2" "definition_extent": "9:1-12:2"
}], }],
@ -40,8 +39,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:type_usage_as_template_parameter.cc@f0", "usr": "c:type_usage_as_template_parameter.cc@f0",
"short_name": "f0", "short_name": "f0",
"qualified_name": "f0", "qualified_name": "unique_ptr<bool> f0",
"hover": "unique_ptr<bool>",
"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,
@ -50,8 +48,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:type_usage_as_template_parameter.cc@f1", "usr": "c:type_usage_as_template_parameter.cc@f1",
"short_name": "f1", "short_name": "f1",
"qualified_name": "f1", "qualified_name": "unique_ptr<S> f1",
"hover": "unique_ptr<S>",
"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,
@ -60,8 +57,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:type_usage_as_template_parameter.cc@150@F@return_type#@local", "usr": "c:type_usage_as_template_parameter.cc@150@F@return_type#@local",
"short_name": "local", "short_name": "local",
"qualified_name": "local", "qualified_name": "unique_ptr<S> * local",
"hover": "unique_ptr<S> *",
"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,

View File

@ -108,32 +108,28 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@as_return_type#*$@S@unique_ptr>#$@S@S1#$@S@S2#", "usr": "c:@F@as_return_type#*$@S@unique_ptr>#$@S@S1#$@S@S2#",
"short_name": "as_return_type", "short_name": "as_return_type",
"qualified_name": "as_return_type", "qualified_name": "unique_ptr<unique_ptr<S1, S2>, S2> *as_return_type(unique_ptr<S1, S2> *)",
"hover": "unique_ptr<unique_ptr<S1, S2>, S2> *(unique_ptr<S1, S2> *)",
"definition_spelling": "33:37-33:51", "definition_spelling": "33:37-33:51",
"definition_extent": "33:1-33:92" "definition_extent": "33:1-33:92"
}, { }, {
"id": 1, "id": 1,
"usr": "c:@F@no_return_type#I#", "usr": "c:@F@no_return_type#I#",
"short_name": "no_return_type", "short_name": "no_return_type",
"qualified_name": "no_return_type", "qualified_name": "void no_return_type(int)",
"hover": "void (int)",
"definition_spelling": "40:6-40:20", "definition_spelling": "40:6-40:20",
"definition_extent": "40:1-40:28" "definition_extent": "40:1-40:28"
}, { }, {
"id": 2, "id": 2,
"usr": "c:@F@empty#", "usr": "c:@F@empty#",
"short_name": "empty", "short_name": "empty",
"qualified_name": "empty", "qualified_name": "void empty()",
"hover": "void ()",
"definition_spelling": "53:6-53:11", "definition_spelling": "53:6-53:11",
"definition_extent": "53:1-55:2" "definition_extent": "53:1-55:2"
}, { }, {
"id": 3, "id": 3,
"usr": "c:@S@Foo@F@foo#", "usr": "c:@S@Foo@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "Foo::foo", "qualified_name": "unique_ptr<S1, S2> *Foo::foo()",
"hover": "unique_ptr<S1, S2> *()",
"declarations": ["65:23-65:26"], "declarations": ["65:23-65:26"],
"definition_spelling": "79:26-79:29", "definition_spelling": "79:26-79:29",
"definition_extent": "79:1-79:51", "definition_extent": "79:1-79:51",
@ -143,8 +139,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@f", "usr": "c:@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "unique_ptr<unique_ptr<S1, S2>, S2> f",
"hover": "unique_ptr<unique_ptr<S1, S2>, S2>",
"declaration": "15:43-15:44", "declaration": "15:43-15:44",
"variable_type": 0, "variable_type": 0,
"uses": ["15:43-15:44"] "uses": ["15:43-15:44"]
@ -152,8 +147,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:type_usage_as_template_parameter_complex.cc@1062@F@empty#@local", "usr": "c:type_usage_as_template_parameter_complex.cc@1062@F@empty#@local",
"short_name": "local", "short_name": "local",
"qualified_name": "local", "qualified_name": "unique_ptr<unique_ptr<S1, S2>, S2> * local",
"hover": "unique_ptr<unique_ptr<S1, S2>, S2> *",
"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,

View File

@ -26,8 +26,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:type_usage_as_template_parameter_simple.cc@foo", "usr": "c:type_usage_as_template_parameter_simple.cc@foo",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "unique_ptr<S> foo",
"hover": "unique_ptr<S>",
"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,

View File

@ -18,8 +18,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@t", "usr": "c:@t",
"short_name": "t", "short_name": "t",
"qualified_name": "t", "qualified_name": "T t",
"hover": "T",
"declaration": "3:10-3:11", "declaration": "3:10-3:11",
"variable_type": 0, "variable_type": 0,
"uses": ["3:10-3:11"] "uses": ["3:10-3:11"]

View File

@ -37,8 +37,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@FI@a", "usr": "c:@S@Foo@FI@a",
"short_name": "a", "short_name": "a",
"qualified_name": "Foo::a", "qualified_name": "ForwardType * Foo::a",
"hover": "ForwardType *",
"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,
@ -48,8 +47,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@S@Foo@FI@b", "usr": "c:@S@Foo@FI@b",
"short_name": "b", "short_name": "b",
"qualified_name": "Foo::b", "qualified_name": "ImplementedType Foo::b",
"hover": "ImplementedType",
"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,

View File

@ -28,8 +28,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@Foo#", "usr": "c:@F@Foo#",
"short_name": "Foo", "short_name": "Foo",
"qualified_name": "Foo", "qualified_name": "void Foo()",
"hover": "void ()",
"definition_spelling": "4:6-4:9", "definition_spelling": "4:6-4:9",
"definition_extent": "4:1-7:2" "definition_extent": "4:1-7:2"
}], }],
@ -37,8 +36,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:type_usage_declare_local.cc@67@F@Foo#@a", "usr": "c:type_usage_declare_local.cc@67@F@Foo#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "ForwardType * a",
"hover": "ForwardType *",
"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,
@ -47,8 +45,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:type_usage_declare_local.cc@86@F@Foo#@b", "usr": "c:type_usage_declare_local.cc@86@F@Foo#@b",
"short_name": "b", "short_name": "b",
"qualified_name": "b", "qualified_name": "ImplementedType b",
"hover": "ImplementedType",
"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,

View File

@ -25,8 +25,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#*$@S@ForwardType#$@S@ImplementedType#", "usr": "c:@F@foo#*$@S@ForwardType#$@S@ImplementedType#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo(ForwardType *, ImplementedType)",
"hover": "void (ForwardType *, ImplementedType)",
"definition_spelling": "4:6-4:9", "definition_spelling": "4:6-4:9",
"definition_extent": "4:1-4:47" "definition_extent": "4:1-4:47"
}], }],
@ -34,8 +33,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:type_usage_declare_param.cc@60@F@foo#*$@S@ForwardType#$@S@ImplementedType#@f", "usr": "c:type_usage_declare_param.cc@60@F@foo#*$@S@ForwardType#$@S@ImplementedType#@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "ForwardType * f",
"hover": "ForwardType *",
"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,
@ -44,8 +42,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:type_usage_declare_param.cc@76@F@foo#*$@S@ForwardType#$@S@ImplementedType#@a", "usr": "c:type_usage_declare_param.cc@76@F@foo#*$@S@ForwardType#$@S@ImplementedType#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "ImplementedType a",
"hover": "ImplementedType",
"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,

View File

@ -21,8 +21,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#*$@S@Foo#S0_#", "usr": "c:@F@foo#*$@S@Foo#S0_#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo(Foo *, Foo *)",
"hover": "void (Foo *, Foo *)",
"declarations": ["3:6-3:9"], "declarations": ["3:6-3:9"],
"definition_spelling": "4:6-4:9", "definition_spelling": "4:6-4:9",
"definition_extent": "4:1-4:26" "definition_extent": "4:1-4:26"
@ -31,8 +30,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:type_usage_declare_param_prototype.cc@49@F@foo#*$@S@Foo#S0_#@f", "usr": "c:type_usage_declare_param_prototype.cc@49@F@foo#*$@S@Foo#S0_#@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "Foo * f",
"hover": "Foo *",
"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,

View File

@ -12,8 +12,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#*$@S@ForwardType#", "usr": "c:@F@foo#*$@S@ForwardType#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo(ForwardType *)",
"hover": "void (ForwardType *)",
"definition_spelling": "2:6-2:9", "definition_spelling": "2:6-2:9",
"definition_extent": "2:1-2:26" "definition_extent": "2:1-2:26"
}] }]

View File

@ -23,8 +23,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#&$@S@Type#&1S1_#", "usr": "c:@F@foo#&$@S@Type#&1S1_#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo(Type &, const Type &)",
"hover": "void (Type &, const Type &)",
"definition_spelling": "3:6-3:9", "definition_spelling": "3:6-3:9",
"definition_extent": "3:1-8:2" "definition_extent": "3:1-8:2"
}], }],
@ -32,8 +31,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:type_usage_declare_qualifiers.cc@28@F@foo#&$@S@Type#&1S1_#@a0", "usr": "c:type_usage_declare_qualifiers.cc@28@F@foo#&$@S@Type#&1S1_#@a0",
"short_name": "a0", "short_name": "a0",
"qualified_name": "a0", "qualified_name": "Type & a0",
"hover": "Type &",
"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,
@ -42,8 +40,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:type_usage_declare_qualifiers.cc@38@F@foo#&$@S@Type#&1S1_#@a1", "usr": "c:type_usage_declare_qualifiers.cc@38@F@foo#&$@S@Type#&1S1_#@a1",
"short_name": "a1", "short_name": "a1",
"qualified_name": "a1", "qualified_name": "const Type & a1",
"hover": "const Type &",
"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,
@ -52,8 +49,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:type_usage_declare_qualifiers.cc@59@F@foo#&$@S@Type#&1S1_#@a2", "usr": "c:type_usage_declare_qualifiers.cc@59@F@foo#&$@S@Type#&1S1_#@a2",
"short_name": "a2", "short_name": "a2",
"qualified_name": "a2", "qualified_name": "Type a2",
"hover": "Type",
"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,
@ -62,8 +58,7 @@ OUTPUT:
"id": 3, "id": 3,
"usr": "c:type_usage_declare_qualifiers.cc@71@F@foo#&$@S@Type#&1S1_#@a3", "usr": "c:type_usage_declare_qualifiers.cc@71@F@foo#&$@S@Type#&1S1_#@a3",
"short_name": "a3", "short_name": "a3",
"qualified_name": "a3", "qualified_name": "Type * a3",
"hover": "Type *",
"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,
@ -72,8 +67,7 @@ OUTPUT:
"id": 4, "id": 4,
"usr": "c:type_usage_declare_qualifiers.cc@84@F@foo#&$@S@Type#&1S1_#@a4", "usr": "c:type_usage_declare_qualifiers.cc@84@F@foo#&$@S@Type#&1S1_#@a4",
"short_name": "a4", "short_name": "a4",
"qualified_name": "a4", "qualified_name": "const Type * a4",
"hover": "const Type *",
"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,
@ -82,8 +76,7 @@ OUTPUT:
"id": 5, "id": 5,
"usr": "c:type_usage_declare_qualifiers.cc@103@F@foo#&$@S@Type#&1S1_#@a5", "usr": "c:type_usage_declare_qualifiers.cc@103@F@foo#&$@S@Type#&1S1_#@a5",
"short_name": "a5", "short_name": "a5",
"qualified_name": "a5", "qualified_name": "const Type * a5",
"hover": "const Type *",
"definition_spelling": "7:21-7:23", "definition_spelling": "7:21-7:23",
"definition_extent": "7:3-7:23", "definition_extent": "7:3-7:23",
"variable_type": 0, "variable_type": 0,

View File

@ -13,8 +13,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:type_usage_declare_static.cc@t", "usr": "c:type_usage_declare_static.cc@t",
"short_name": "t", "short_name": "t",
"qualified_name": "t", "qualified_name": "Type t",
"hover": "Type",
"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,

View File

@ -38,8 +38,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "Type *foo()",
"hover": "Type *()",
"declarations": ["3:7-3:10", "4:7-4:10"], "declarations": ["3:7-3:10", "4:7-4:10"],
"definition_spelling": "5:7-5:10", "definition_spelling": "5:7-5:10",
"definition_extent": "5:1-5:15" "definition_extent": "5:1-5:15"
@ -47,8 +46,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@S@Foo@F@Get#I#", "usr": "c:@S@Foo@F@Get#I#",
"short_name": "Get", "short_name": "Get",
"qualified_name": "Foo::Get", "qualified_name": "Type *Foo::Get(int)",
"hover": "Type *(int)",
"declarations": ["8:9-8:12"], "declarations": ["8:9-8:12"],
"definition_spelling": "12:12-12:15", "definition_spelling": "12:12-12:15",
"definition_extent": "12:1-12:23", "definition_extent": "12:1-12:23",
@ -57,8 +55,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@S@Foo@F@Empty#", "usr": "c:@S@Foo@F@Empty#",
"short_name": "Empty", "short_name": "Empty",
"qualified_name": "Foo::Empty", "qualified_name": "void Foo::Empty()",
"hover": "void ()",
"declarations": ["9:8-9:13"], "declarations": ["9:8-9:13"],
"definition_spelling": "13:11-13:16", "definition_spelling": "13:11-13:16",
"definition_extent": "13:1-13:21", "definition_extent": "13:1-13:21",
@ -67,15 +64,13 @@ OUTPUT:
"id": 3, "id": 3,
"usr": "c:@F@external#", "usr": "c:@F@external#",
"short_name": "external", "short_name": "external",
"qualified_name": "external", "qualified_name": "const Type &external()",
"hover": "const Type &()",
"declarations": ["15:20-15:28"] "declarations": ["15:20-15:28"]
}, { }, {
"id": 4, "id": 4,
"usr": "c:type_usage_on_return_type.cc@F@bar#", "usr": "c:type_usage_on_return_type.cc@F@bar#",
"short_name": "bar", "short_name": "bar",
"qualified_name": "bar", "qualified_name": "Type *bar()",
"hover": "Type *()",
"declarations": ["17:14-17:17"], "declarations": ["17:14-17:17"],
"definition_spelling": "18:14-18:17", "definition_spelling": "18:14-18:17",
"definition_extent": "18:1-18:22" "definition_extent": "18:1-18:22"

View File

@ -56,32 +56,28 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@accept#*$@S@Foo#", "usr": "c:@F@accept#*$@S@Foo#",
"short_name": "accept", "short_name": "accept",
"qualified_name": "accept", "qualified_name": "void accept(Foo *)",
"hover": "void (Foo *)",
"definition_spelling": "7:6-7:12", "definition_spelling": "7:6-7:12",
"definition_extent": "7:1-7:21" "definition_extent": "7:1-7:21"
}, { }, {
"id": 1, "id": 1,
"usr": "c:@F@accept1#**$@S@Foo#", "usr": "c:@F@accept1#**$@S@Foo#",
"short_name": "accept1", "short_name": "accept1",
"qualified_name": "accept1", "qualified_name": "void accept1(Foo1 *)",
"hover": "void (Foo1 *)",
"definition_spelling": "8:6-8:13", "definition_spelling": "8:6-8:13",
"definition_extent": "8:1-8:23" "definition_extent": "8:1-8:23"
}, { }, {
"id": 2, "id": 2,
"usr": "c:@F@accept2#*$@S@Foo#", "usr": "c:@F@accept2#*$@S@Foo#",
"short_name": "accept2", "short_name": "accept2",
"qualified_name": "accept2", "qualified_name": "void accept2(Foo2 *)",
"hover": "void (Foo2 *)",
"definition_spelling": "9:6-9:13", "definition_spelling": "9:6-9:13",
"definition_extent": "9:1-9:23" "definition_extent": "9:1-9:23"
}, { }, {
"id": 3, "id": 3,
"usr": "c:@F@accept3#**$@S@Foo#", "usr": "c:@F@accept3#**$@S@Foo#",
"short_name": "accept3", "short_name": "accept3",
"qualified_name": "accept3", "qualified_name": "void accept3(Foo3 *)",
"hover": "void (Foo3 *)",
"definition_spelling": "10:6-10:13", "definition_spelling": "10:6-10:13",
"definition_extent": "10:1-10:23" "definition_extent": "10:1-10:23"
}] }]

View File

@ -27,8 +27,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@F@make#", "usr": "c:@S@Foo@F@make#",
"short_name": "make", "short_name": "make",
"qualified_name": "Foo::make", "qualified_name": "Foo *Foo::make()",
"hover": "Foo *()",
"declarations": ["2:8-2:12"], "declarations": ["2:8-2:12"],
"definition_spelling": "5:11-5:15", "definition_spelling": "5:11-5:15",
"definition_extent": "5:1-8:2", "definition_extent": "5:1-8:2",
@ -38,8 +37,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:type_usage_various.cc@57@S@Foo@F@make#@f", "usr": "c:type_usage_various.cc@57@S@Foo@F@make#@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "Foo f",
"hover": "Foo",
"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,
@ -48,8 +46,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@foo", "usr": "c:@foo",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "Foo foo",
"hover": "Foo",
"declaration": "10:12-10:15", "declaration": "10:12-10:15",
"variable_type": 0, "variable_type": 0,
"uses": ["10:12-10:15"] "uses": ["10:12-10:15"]

View File

@ -31,24 +31,21 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@called#I#", "usr": "c:@F@called#I#",
"short_name": "called", "short_name": "called",
"qualified_name": "called", "qualified_name": "void called(int)",
"hover": "void (int)",
"declarations": ["1:6-1:12"], "declarations": ["1:6-1:12"],
"callers": ["2@14:3-14:9"] "callers": ["2@14:3-14:9"]
}, { }, {
"id": 1, "id": 1,
"usr": "c:@F@gen#", "usr": "c:@F@gen#",
"short_name": "gen", "short_name": "gen",
"qualified_name": "gen", "qualified_name": "int gen()",
"hover": "int ()",
"declarations": ["3:5-3:8"], "declarations": ["3:5-3:8"],
"callers": ["2@14:14-14:17"] "callers": ["2@14:14-14:17"]
}, { }, {
"id": 2, "id": 2,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "12:6-12:9", "definition_spelling": "12:6-12:9",
"definition_extent": "12:1-15:2", "definition_extent": "12:1-15:2",
"callees": ["0@14:3-14:9", "1@14:14-14:17"] "callees": ["0@14:3-14:9", "1@14:14-14:17"]
@ -57,8 +54,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@static_var", "usr": "c:@S@Foo@static_var",
"short_name": "static_var", "short_name": "static_var",
"qualified_name": "Foo::static_var", "qualified_name": "int Foo::static_var",
"hover": "int",
"declaration": "6:14-6:24", "declaration": "6:14-6:24",
"definition_spelling": "10:10-10:20", "definition_spelling": "10:10-10:20",
"definition_extent": "10:1-10:24", "definition_extent": "10:1-10:24",
@ -68,8 +64,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@S@Foo@FI@field_var", "usr": "c:@S@Foo@FI@field_var",
"short_name": "field_var", "short_name": "field_var",
"qualified_name": "Foo::field_var", "qualified_name": "int Foo::field_var",
"hover": "int",
"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,
@ -78,8 +73,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:usage_inside_of_call.cc@145@F@foo#@a", "usr": "c:usage_inside_of_call.cc@145@F@foo#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "13:7-13:8", "definition_spelling": "13:7-13:8",
"definition_extent": "13:3-13:12", "definition_extent": "13:3-13:12",
"uses": ["13:7-13:8", "14:10-14:11"] "uses": ["13:7-13:8", "14:10-14:11"]

View File

@ -13,16 +13,14 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@called#I#", "usr": "c:@F@called#I#",
"short_name": "called", "short_name": "called",
"qualified_name": "called", "qualified_name": "void called(int)",
"hover": "void (int)",
"declarations": ["1:6-1:12"], "declarations": ["1:6-1:12"],
"callers": ["2@6:3-6:9"] "callers": ["2@6:3-6:9"]
}, { }, {
"id": 1, "id": 1,
"usr": "c:@F@gen#", "usr": "c:@F@gen#",
"short_name": "gen", "short_name": "gen",
"qualified_name": "gen", "qualified_name": "int gen()",
"hover": "int ()",
"definition_spelling": "3:5-3:8", "definition_spelling": "3:5-3:8",
"definition_extent": "3:1-3:24", "definition_extent": "3:1-3:24",
"callers": ["2@6:10-6:13", "2@6:18-6:21"] "callers": ["2@6:10-6:13", "2@6:18-6:21"]
@ -30,8 +28,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "5:6-5:9", "definition_spelling": "5:6-5:9",
"definition_extent": "5:1-7:2", "definition_extent": "5:1-7:2",
"callees": ["0@6:3-6:9", "1@6:10-6:13", "1@6:18-6:21"] "callees": ["0@6:3-6:9", "1@6:10-6:13", "1@6:18-6:21"]

View File

@ -14,8 +14,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@called#", "usr": "c:@F@called#",
"short_name": "called", "short_name": "called",
"qualified_name": "called", "qualified_name": "void called()",
"hover": "void ()",
"definition_spelling": "1:6-1:12", "definition_spelling": "1:6-1:12",
"definition_extent": "1:1-1:17", "definition_extent": "1:1-1:17",
"callers": ["1@4:13-4:19", "1@7:3-7:9"] "callers": ["1@4:13-4:19", "1@7:3-7:9"]
@ -23,8 +22,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@F@caller#", "usr": "c:@F@caller#",
"short_name": "caller", "short_name": "caller",
"qualified_name": "caller", "qualified_name": "void caller()",
"hover": "void ()",
"definition_spelling": "3:6-3:12", "definition_spelling": "3:6-3:12",
"definition_extent": "3:1-8:2", "definition_extent": "3:1-8:2",
"callees": ["0@4:13-4:19", "0@7:3-7:9"] "callees": ["0@4:13-4:19", "0@7:3-7:9"]
@ -33,8 +31,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:var_usage_call_function.cc@39@F@caller#@x", "usr": "c:var_usage_call_function.cc@39@F@caller#@x",
"short_name": "x", "short_name": "x",
"qualified_name": "x", "qualified_name": "void (*)() x",
"hover": "void (*)()",
"definition_spelling": "4:8-4:9", "definition_spelling": "4:8-4:9",
"definition_extent": "4:3-4:19", "definition_extent": "4:3-4:19",
"uses": ["4:8-4:9", "5:3-5:4"] "uses": ["4:8-4:9", "5:3-5:4"]

View File

@ -35,24 +35,21 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@accept#I#", "usr": "c:@F@accept#I#",
"short_name": "accept", "short_name": "accept",
"qualified_name": "accept", "qualified_name": "void accept(int)",
"hover": "void (int)",
"declarations": ["7:6-7:12"], "declarations": ["7:6-7:12"],
"callers": ["2@14:3-14:9", "2@15:3-15:9", "2@17:3-17:9"] "callers": ["2@14:3-14:9", "2@15:3-15:9", "2@17:3-17:9"]
}, { }, {
"id": 1, "id": 1,
"usr": "c:@F@accept#*I#", "usr": "c:@F@accept#*I#",
"short_name": "accept", "short_name": "accept",
"qualified_name": "accept", "qualified_name": "void accept(int *)",
"hover": "void (int *)",
"declarations": ["8:6-8:12"], "declarations": ["8:6-8:12"],
"callers": ["2@16:3-16:9"] "callers": ["2@16:3-16:9"]
}, { }, {
"id": 2, "id": 2,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "10:6-10:9", "definition_spelling": "10:6-10:9",
"definition_extent": "10:1-18:2", "definition_extent": "10:1-18:2",
"callees": ["0@14:3-14:9", "0@15:3-15:9", "1@16:3-16:9", "0@17:3-17:9"] "callees": ["0@14:3-14:9", "0@15:3-15:9", "1@16:3-16:9", "0@17:3-17:9"]
@ -61,8 +58,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@FI@x", "usr": "c:@S@Foo@FI@x",
"short_name": "x", "short_name": "x",
"qualified_name": "Foo::x", "qualified_name": "int Foo::x",
"hover": "int",
"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,
@ -71,8 +67,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:@S@Foo@FI@y", "usr": "c:@S@Foo@FI@y",
"short_name": "y", "short_name": "y",
"qualified_name": "Foo::y", "qualified_name": "int Foo::y",
"hover": "int",
"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,
@ -81,8 +76,7 @@ OUTPUT:
"id": 2, "id": 2,
"usr": "c:var_usage_class_member.cc@105@F@foo#@f", "usr": "c:var_usage_class_member.cc@105@F@foo#@f",
"short_name": "f", "short_name": "f",
"qualified_name": "f", "qualified_name": "Foo f",
"hover": "Foo",
"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,

View File

@ -24,16 +24,14 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@accept#I#", "usr": "c:@F@accept#I#",
"short_name": "accept", "short_name": "accept",
"qualified_name": "accept", "qualified_name": "void accept(int)",
"hover": "void (int)",
"declarations": ["5:6-5:12"], "declarations": ["5:6-5:12"],
"callers": ["1@8:3-8:9"] "callers": ["1@8:3-8:9"]
}, { }, {
"id": 1, "id": 1,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "7:6-7:9", "definition_spelling": "7:6-7:9",
"definition_extent": "7:1-9:2", "definition_extent": "7:1-9:2",
"callees": ["0@8:3-8:9"] "callees": ["0@8:3-8:9"]
@ -42,8 +40,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@x", "usr": "c:@S@Foo@x",
"short_name": "x", "short_name": "x",
"qualified_name": "Foo::x", "qualified_name": "int Foo::x",
"hover": "int",
"declaration": "2:14-2:15", "declaration": "2:14-2:15",
"uses": ["2:14-2:15", "8:15-8:16"] "uses": ["2:14-2:15", "8:15-8:16"]
}] }]

View File

@ -33,8 +33,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Holder@static_var", "usr": "c:@S@Holder@static_var",
"short_name": "static_var", "short_name": "static_var",
"qualified_name": "Holder::static_var", "qualified_name": "const VarType Holder::static_var",
"hover": "const VarType",
"declaration": "4:28-4:38", "declaration": "4:28-4:38",
"definition_spelling": "7:23-7:33", "definition_spelling": "7:23-7:33",
"definition_extent": "7:1-7:33", "definition_extent": "7:1-7:33",

View File

@ -10,8 +10,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "3:6-3:9", "definition_spelling": "3:6-3:9",
"definition_extent": "3:1-5:2" "definition_extent": "3:1-5:2"
}], }],
@ -19,8 +18,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@a", "usr": "c:@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"declaration": "1:12-1:13", "declaration": "1:12-1:13",
"uses": ["1:12-1:13", "4:3-4:4"] "uses": ["1:12-1:13", "4:3-4:4"]
}] }]

View File

@ -8,8 +8,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#I#", "usr": "c:@F@foo#I#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo(int)",
"hover": "void (int)",
"definition_spelling": "1:6-1:9", "definition_spelling": "1:6-1:9",
"definition_extent": "1:1-3:2" "definition_extent": "1:1-3:2"
}], }],
@ -17,8 +16,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:var_usage_func_parameter.cc@9@F@foo#I#@a", "usr": "c:var_usage_func_parameter.cc@9@F@foo#I#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "1:14-1:15", "definition_spelling": "1:14-1:15",
"definition_extent": "1:10-1:15", "definition_extent": "1:10-1:15",
"uses": ["1:14-1:15", "2:3-2:4"] "uses": ["1:14-1:15", "2:3-2:4"]

View File

@ -9,8 +9,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "1:6-1:9", "definition_spelling": "1:6-1:9",
"definition_extent": "1:1-4:2" "definition_extent": "1:1-4:2"
}], }],
@ -18,8 +17,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:var_usage_local.cc@16@F@foo#@x", "usr": "c:var_usage_local.cc@16@F@foo#@x",
"short_name": "x", "short_name": "x",
"qualified_name": "x", "qualified_name": "int x",
"hover": "int",
"definition_spelling": "2:7-2:8", "definition_spelling": "2:7-2:8",
"definition_extent": "2:3-2:8", "definition_extent": "2:3-2:8",
"uses": ["2:7-2:8", "3:3-3:4"] "uses": ["2:7-2:8", "3:3-3:4"]

View File

@ -14,8 +14,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "1:6-1:9", "definition_spelling": "1:6-1:9",
"definition_extent": "1:1-9:2" "definition_extent": "1:1-9:2"
}], }],
@ -23,8 +22,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:var_usage_shadowed_local.cc@16@F@foo#@a", "usr": "c:var_usage_shadowed_local.cc@16@F@foo#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "2:7-2:8", "definition_spelling": "2:7-2:8",
"definition_extent": "2:3-2:8", "definition_extent": "2:3-2:8",
"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"]
@ -32,8 +30,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:var_usage_shadowed_local.cc@43@F@foo#@a", "usr": "c:var_usage_shadowed_local.cc@43@F@foo#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "5:9-5:10", "definition_spelling": "5:9-5:10",
"definition_extent": "5:5-5:10", "definition_extent": "5:5-5:10",
"uses": ["5:9-5:10", "6:5-6:6"] "uses": ["5:9-5:10", "6:5-6:6"]

View File

@ -14,8 +14,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#I#", "usr": "c:@F@foo#I#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo(int)",
"hover": "void (int)",
"definition_spelling": "1:6-1:9", "definition_spelling": "1:6-1:9",
"definition_extent": "1:1-8:2" "definition_extent": "1:1-8:2"
}], }],
@ -23,8 +22,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:var_usage_shadowed_parameter.cc@9@F@foo#I#@a", "usr": "c:var_usage_shadowed_parameter.cc@9@F@foo#I#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "1:14-1:15", "definition_spelling": "1:14-1:15",
"definition_extent": "1:10-1:15", "definition_extent": "1:10-1:15",
"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"]
@ -32,8 +30,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:var_usage_shadowed_parameter.cc@38@F@foo#I#@a", "usr": "c:var_usage_shadowed_parameter.cc@38@F@foo#I#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "4:9-4:10", "definition_spelling": "4:9-4:10",
"definition_extent": "4:5-4:10", "definition_extent": "4:5-4:10",
"uses": ["4:9-4:10", "5:5-5:6"] "uses": ["4:9-4:10", "5:5-5:6"]

View File

@ -11,8 +11,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "3:6-3:9", "definition_spelling": "3:6-3:9",
"definition_extent": "3:1-5:2" "definition_extent": "3:1-5:2"
}], }],
@ -20,8 +19,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:var_usage_static.cc@a", "usr": "c:var_usage_static.cc@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "1:12-1:13", "definition_spelling": "1:12-1:13",
"definition_extent": "1:1-1:13", "definition_extent": "1:1-1:13",
"uses": ["1:12-1:13", "4:3-4:4"] "uses": ["1:12-1:13", "4:3-4:4"]

View File

@ -19,8 +19,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@FI@member", "usr": "c:@S@Foo@FI@member",
"short_name": "member", "short_name": "member",
"qualified_name": "Foo::member", "qualified_name": "Foo * Foo::member",
"hover": "Foo *",
"definition_spelling": "2:8-2:14", "definition_spelling": "2:8-2:14",
"definition_extent": "2:3-2:14", "definition_extent": "2:3-2:14",
"variable_type": 0, "variable_type": 0,

View File

@ -21,8 +21,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@member", "usr": "c:@S@Foo@member",
"short_name": "member", "short_name": "member",
"qualified_name": "Foo::member", "qualified_name": "Foo * Foo::member",
"hover": "Foo *",
"declaration": "2:15-2:21", "declaration": "2:15-2:21",
"definition_spelling": "4:11-4:17", "definition_spelling": "4:11-4:17",
"definition_extent": "4:1-4:27", "definition_extent": "4:1-4:27",
@ -31,5 +30,4 @@ OUTPUT:
"uses": ["2:15-2:21", "4:11-4:17"] "uses": ["2:15-2:21", "4:11-4:17"]
}] }]
} }
*/ */

View File

@ -17,11 +17,9 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@S@Foo@member", "usr": "c:@S@Foo@member",
"short_name": "member", "short_name": "member",
"qualified_name": "Foo::member", "qualified_name": "int Foo::member",
"hover": "int",
"declaration": "2:14-2:20", "declaration": "2:14-2:20",
"uses": ["2:14-2:20"] "uses": ["2:14-2:20"]
}] }]
} }
*/ */

View File

@ -17,8 +17,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "3:6-3:9", "definition_spelling": "3:6-3:9",
"definition_extent": "3:1-5:2" "definition_extent": "3:1-5:2"
}], }],
@ -26,8 +25,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:function_local.cc@31@F@foo#@a", "usr": "c:function_local.cc@31@F@foo#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "Foo * a",
"hover": "Foo *",
"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,

View File

@ -15,8 +15,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#*$@S@Foo#S0_#", "usr": "c:@F@foo#*$@S@Foo#S0_#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo(Foo *, Foo *)",
"hover": "void (Foo *, Foo *)",
"definition_spelling": "3:6-3:9", "definition_spelling": "3:6-3:9",
"definition_extent": "3:1-3:30" "definition_extent": "3:1-3:30"
}], }],
@ -24,8 +23,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:function_param.cc@24@F@foo#*$@S@Foo#S0_#@p0", "usr": "c:function_param.cc@24@F@foo#*$@S@Foo#S0_#@p0",
"short_name": "p0", "short_name": "p0",
"qualified_name": "p0", "qualified_name": "Foo * p0",
"hover": "Foo *",
"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,
@ -34,8 +32,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:function_param.cc@33@F@foo#*$@S@Foo#S0_#@p1", "usr": "c:function_param.cc@33@F@foo#*$@S@Foo#S0_#@p1",
"short_name": "p1", "short_name": "p1",
"qualified_name": "p1", "qualified_name": "Foo * p1",
"hover": "Foo *",
"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,

View File

@ -6,8 +6,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#I#I#", "usr": "c:@F@foo#I#I#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo(int, int)",
"hover": "void (int, int)",
"definition_spelling": "1:6-1:9", "definition_spelling": "1:6-1:9",
"definition_extent": "1:1-1:22" "definition_extent": "1:1-1:22"
}] }]

View File

@ -14,8 +14,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:@F@foo#", "usr": "c:@F@foo#",
"short_name": "foo", "short_name": "foo",
"qualified_name": "foo", "qualified_name": "void foo()",
"hover": "void ()",
"definition_spelling": "1:6-1:9", "definition_spelling": "1:6-1:9",
"definition_extent": "1:1-9:2" "definition_extent": "1:1-9:2"
}], }],
@ -23,8 +22,7 @@ OUTPUT:
"id": 0, "id": 0,
"usr": "c:function_shadow_local.cc@16@F@foo#@a", "usr": "c:function_shadow_local.cc@16@F@foo#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "2:7-2:8", "definition_spelling": "2:7-2:8",
"definition_extent": "2:3-2:8", "definition_extent": "2:3-2:8",
"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"]
@ -32,8 +30,7 @@ OUTPUT:
"id": 1, "id": 1,
"usr": "c:function_shadow_local.cc@43@F@foo#@a", "usr": "c:function_shadow_local.cc@43@F@foo#@a",
"short_name": "a", "short_name": "a",
"qualified_name": "a", "qualified_name": "int a",
"hover": "int",
"definition_spelling": "5:9-5:10", "definition_spelling": "5:9-5:10",
"definition_extent": "5:5-5:10", "definition_extent": "5:5-5:10",
"uses": ["5:9-5:10", "6:5-6:6"] "uses": ["5:9-5:10", "6:5-6:6"]

Some files were not shown because too many files have changed in this diff Show More