blob: 63c26738b134a86c624aea59bcecd6084920d456 (
plain)
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
|
#pragma once
#include "CodegenConfig.hpp"
#include "CodegenDecl.hpp"
#include "CodegenUtils.hpp"
#include <cinttypes>
#include <string>
#include <string_view>
using namespace std::literals;
class CodegenInput {
private:
class Private;
Private* m;
public:
CodegenInput();
~CodegenInput();
DeclEnum* AddEnum(std::string fullname, DeclEnum decl);
DeclStruct* AddStruct(std::string fullname, DeclStruct decl);
const DeclEnum* FindEnum(std::string_view name) const;
const DeclStruct* FindStruct(std::string_view name) const;
DeclNamespace* AddNamespace(DeclNamespace ns);
const DeclNamespace* FindNamespace(std::string_view fullname) const;
DeclNamespace* FindNamespace(std::string_view name);
};
|