2017-03-11 02:24:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
struct CompilationEntry {
|
|
|
|
std::string directory;
|
|
|
|
std::string filename;
|
|
|
|
std::vector<std::string> args;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::vector<CompilationEntry> LoadCompilationEntriesFromDirectory(const std::string& project_directory);
|
|
|
|
|
|
|
|
/*
|
2017-12-22 16:48:12 +00:00
|
|
|
TEXT_REPLACE:
|
|
|
|
c:@N@std@T@string <===> c:@N@std@N@__1@T@string
|
|
|
|
c:@N@std@ST>2#T#T@vector <===> c:@N@std@N@__1@ST>2#T#T@vector
|
|
|
|
c:@F@LoadCompilationEntriesFromDirectory#&1$@N@std@N@__1@S@basic_string>#C#$@N@std@N@__1@S@char_traits>#C#$@N@std@N@__1@S@allocator>#C# <===> c:@F@LoadCompilationEntriesFromDirectory#&1$@N@std@S@basic_string>#C#$@N@std@S@char_traits>#C#$@N@std@S@allocator>#C#
|
|
|
|
|
2017-03-11 02:24:09 +00:00
|
|
|
OUTPUT:
|
|
|
|
{
|
2017-05-21 03:46:15 +00:00
|
|
|
"includes": [{
|
|
|
|
"line": 3,
|
2017-11-30 03:21:23 +00:00
|
|
|
"resolved_path": "&string"
|
2017-05-21 03:46:15 +00:00
|
|
|
}, {
|
|
|
|
"line": 4,
|
2017-11-30 03:21:23 +00:00
|
|
|
"resolved_path": "&vector"
|
2017-05-21 03:46:15 +00:00
|
|
|
}],
|
2017-12-12 05:15:37 +00:00
|
|
|
"skipped_by_preprocessor": [],
|
2017-03-11 02:24:09 +00:00
|
|
|
"types": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@S@CompilationEntry",
|
|
|
|
"short_name": "CompilationEntry",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "CompilationEntry",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "CompilationEntry",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "6:8-6:24",
|
|
|
|
"definition_extent": "6:1-10:2",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
2017-03-11 02:24:09 +00:00
|
|
|
"vars": [0, 1, 2],
|
2017-12-12 05:15:37 +00:00
|
|
|
"instances": [],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["6:8-6:24", "12:13-12:29"]
|
2017-04-03 01:34:15 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@N@std@T@string",
|
2017-12-12 05:06:27 +00:00
|
|
|
"short_name": "",
|
|
|
|
"detailed_name": "",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2017-04-21 07:04:56 +00:00
|
|
|
"instances": [0, 1],
|
2017-12-19 04:39:45 +00:00
|
|
|
"uses": ["7:8-7:14", "8:8-8:14", "9:20-9:26", "12:78-12:84"]
|
2017-04-03 01:34:15 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
|
|
|
"usr": "c:@N@std@ST>2#T#T@vector",
|
2017-12-12 05:06:27 +00:00
|
|
|
"short_name": "",
|
|
|
|
"detailed_name": "",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "",
|
2017-12-12 05:15:37 +00:00
|
|
|
"parents": [],
|
|
|
|
"derived": [],
|
|
|
|
"types": [],
|
|
|
|
"funcs": [],
|
|
|
|
"vars": [],
|
2017-04-21 07:04:56 +00:00
|
|
|
"instances": [2],
|
2017-04-19 04:58:39 +00:00
|
|
|
"uses": ["9:8-9:14", "12:6-12:12"]
|
2017-03-11 02:24:09 +00:00
|
|
|
}],
|
|
|
|
"funcs": [{
|
|
|
|
"id": 0,
|
2017-12-02 01:07:03 +00:00
|
|
|
"is_operator": false,
|
2017-03-11 02:24:09 +00:00
|
|
|
"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",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "std::vector<CompilationEntry> LoadCompilationEntriesFromDirectory(const std::string &)",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "std::vector<CompilationEntry> LoadCompilationEntriesFromDirectory(const std::string &)",
|
2017-05-27 21:09:20 +00:00
|
|
|
"declarations": [{
|
2017-05-28 01:53:22 +00:00
|
|
|
"spelling": "12:31-12:66",
|
|
|
|
"extent": "12:1-12:104",
|
|
|
|
"content": "std::vector<CompilationEntry> LoadCompilationEntriesFromDirectory(const std::string& project_directory)",
|
|
|
|
"param_spellings": ["12:86-12:103"]
|
2017-12-12 05:15:37 +00:00
|
|
|
}],
|
2017-12-19 06:15:46 +00:00
|
|
|
"base": [],
|
2017-12-12 05:15:37 +00:00
|
|
|
"derived": [],
|
|
|
|
"locals": [],
|
|
|
|
"callers": [],
|
|
|
|
"callees": []
|
2017-03-11 02:24:09 +00:00
|
|
|
}],
|
|
|
|
"vars": [{
|
|
|
|
"id": 0,
|
|
|
|
"usr": "c:@S@CompilationEntry@FI@directory",
|
|
|
|
"short_name": "directory",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "std::string CompilationEntry::directory",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "std::string",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "7:15-7:24",
|
|
|
|
"definition_extent": "7:3-7:24",
|
2017-03-11 02:24:09 +00:00
|
|
|
"variable_type": 1,
|
|
|
|
"declaring_type": 0,
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": false,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["7:15-7:24"]
|
2017-03-11 02:24:09 +00:00
|
|
|
}, {
|
|
|
|
"id": 1,
|
|
|
|
"usr": "c:@S@CompilationEntry@FI@filename",
|
|
|
|
"short_name": "filename",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "std::string CompilationEntry::filename",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "std::string",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "8:15-8:23",
|
|
|
|
"definition_extent": "8:3-8:23",
|
2017-03-11 02:24:09 +00:00
|
|
|
"variable_type": 1,
|
|
|
|
"declaring_type": 0,
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": false,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["8:15-8:23"]
|
2017-03-11 02:24:09 +00:00
|
|
|
}, {
|
|
|
|
"id": 2,
|
|
|
|
"usr": "c:@S@CompilationEntry@FI@args",
|
|
|
|
"short_name": "args",
|
2017-04-15 04:58:07 +00:00
|
|
|
"detailed_name": "std::vector<std::string> CompilationEntry::args",
|
2017-12-19 05:20:00 +00:00
|
|
|
"hover": "std::vector<std::string>",
|
2017-04-05 08:29:15 +00:00
|
|
|
"definition_spelling": "9:28-9:32",
|
|
|
|
"definition_extent": "9:3-9:32",
|
2017-03-11 02:24:09 +00:00
|
|
|
"variable_type": 2,
|
|
|
|
"declaring_type": 0,
|
2017-05-21 01:26:50 +00:00
|
|
|
"is_local": false,
|
2017-06-29 06:25:19 +00:00
|
|
|
"is_macro": false,
|
2017-04-05 08:29:15 +00:00
|
|
|
"uses": ["9:28-9:32"]
|
2017-03-11 02:24:09 +00:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
*/
|