-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcprj_loader_impl.hpp
More file actions
53 lines (35 loc) · 1.05 KB
/
cprj_loader_impl.hpp
File metadata and controls
53 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
#include "cmake_project/api/cprj_loader.hpp"
#include <std_fs>
#include <memory>
//------------------------------------------------------------------------------
namespace compilation_db
{
class CommandObject;
}
//------------------------------------------------------------------------------
namespace cmake_project
{
class IncludesParser;
//------------------------------------------------------------------------------
class LoaderImpl final : public Loader
{
public:
using Path = stdfs::path;
LoaderImpl();
~LoaderImpl();
ProjectPtr load( const compilation_db::Database & _db ) override;
ProjectPtr createEmptyProject() override;
private:
Path loadFile(
const compilation_db::CommandObject & _commnad, Project & _project );
void loadCommand(
const compilation_db::CommandObject & _commnad,
const Path & _currentFile,
Project & _project );
IncludesParser & ensureIncludesParser();
private:
std::unique_ptr< IncludesParser > m_includeParser;
};
//------------------------------------------------------------------------------
}