ccls/tests/multi_file/static.cc

84 lines
1.9 KiB
C++
Raw Normal View History

#include "static.h"
void Buffer::CreateSharedBuffer() {}
/*
OUTPUT: static.h
{
2017-12-12 05:15:37 +00:00
"includes": [],
"skipped_by_preprocessor": [],
"types": [{
"id": 0,
"usr": "c:@S@Buffer",
"short_name": "Buffer",
"detailed_name": "Buffer",
"definition_spelling": "3:8-3:14",
"definition_extent": "3:1-5:2",
2017-12-12 05:15:37 +00:00
"parents": [],
"derived": [],
"types": [],
"funcs": [0],
2017-12-12 05:15:37 +00:00
"vars": [],
"instances": [],
2017-04-19 04:58:39 +00:00
"uses": ["3:8-3:14"]
}],
"funcs": [{
"id": 0,
2017-12-02 01:07:03 +00:00
"is_operator": false,
"usr": "c:@S@Buffer@F@CreateSharedBuffer#S",
"short_name": "CreateSharedBuffer",
"detailed_name": "void Buffer::CreateSharedBuffer()",
"declarations": [{
"spelling": "4:15-4:33",
"extent": "4:3-4:35",
2017-12-12 05:15:37 +00:00
"content": "static void CreateSharedBuffer()",
"param_spellings": []
}],
2017-12-12 05:15:37 +00:00
"declaring_type": 0,
2017-12-19 06:15:46 +00:00
"base": [],
2017-12-12 05:15:37 +00:00
"derived": [],
"locals": [],
"callers": [],
"callees": []
}],
"vars": []
}
OUTPUT: static.cc
{
2017-05-21 03:46:15 +00:00
"includes": [{
"line": 1,
2017-11-30 03:21:23 +00:00
"resolved_path": "&static.h"
2017-05-21 03:46:15 +00:00
}],
2017-12-12 05:15:37 +00:00
"skipped_by_preprocessor": [],
"types": [{
"id": 0,
"usr": "c:@S@Buffer",
2017-12-12 05:06:27 +00:00
"short_name": "",
"detailed_name": "",
2017-12-12 05:15:37 +00:00
"parents": [],
"derived": [],
"types": [],
"funcs": [0],
2017-12-12 05:15:37 +00:00
"vars": [],
"instances": [],
"uses": ["3:6-3:12"]
}],
"funcs": [{
"id": 0,
2017-12-02 01:07:03 +00:00
"is_operator": false,
"usr": "c:@S@Buffer@F@CreateSharedBuffer#S",
"short_name": "CreateSharedBuffer",
"detailed_name": "void Buffer::CreateSharedBuffer()",
2017-12-12 05:15:37 +00:00
"declarations": [],
"definition_spelling": "3:14-3:32",
"definition_extent": "3:1-3:37",
2017-12-12 05:15:37 +00:00
"declaring_type": 0,
2017-12-19 06:15:46 +00:00
"base": [],
2017-12-12 05:15:37 +00:00
"derived": [],
"locals": [],
"callers": [],
"callees": []
}],
"vars": []
}
*/