Reflection for RapidJSON
0.0.17
Reflection for serializing/deserializing with RapidJSON
Toggle main menu visibility
Loading...
Searching...
No Matches
frontendaction.h
Go to the documentation of this file.
1
#ifndef REFLECTIVE_RAPIDJSON_FRONTEND_ACTION_H
2
#define REFLECTIVE_RAPIDJSON_FRONTEND_ACTION_H
3
#include "
./clangversionabstraction.h
"
4
5
#include <clang/Frontend/FrontendAction.h>
6
7
namespace
ReflectiveRapidJSON
{
8
9
class
CodeFactory
;
10
14
class
FrontendAction
:
public
clang::ASTFrontendAction {
15
public
:
16
FrontendAction
(
CodeFactory
&factory);
17
bool
hasCodeCompletionSupport
()
const override
;
18
19
protected
:
20
REFLECTIVE_RAPIDJSON_MAYBE_UNIQUE
(clang::ASTConsumer)
21
CreateASTConsumer
(clang::CompilerInstance &compilerInstance, llvm::StringRef inputFile)
override
;
22
23
private
:
24
CodeFactory
&m_factory;
25
};
26
27
inline
FrontendAction::FrontendAction
(
CodeFactory
&factory)
28
: m_factory(factory)
29
{
30
}
31
32
}
// namespace ReflectiveRapidJSON
33
34
#endif
// REFLECTIVE_RAPIDJSON_FRONTEND_ACTION_H
clangversionabstraction.h
REFLECTIVE_RAPIDJSON_MAYBE_UNIQUE
#define REFLECTIVE_RAPIDJSON_MAYBE_UNIQUE(t)
The REFLECTIVE_RAPIDJSON_MAYBE_UNIQUE macro either expands to a std::unique_ptr or a raw pointer depe...
Definition
clangversionabstraction.h:45
ReflectiveRapidJSON::CodeFactory
The CodeFactory class produces additional (reflection) code for a specified list of C++ source files.
Definition
codefactory.h:27
ReflectiveRapidJSON::FrontendAction::CreateASTConsumer
CreateASTConsumer(clang::CompilerInstance &compilerInstance, llvm::StringRef inputFile) override
Definition
frontendaction.cpp:17
ReflectiveRapidJSON::FrontendAction::FrontendAction
FrontendAction(CodeFactory &factory)
Definition
frontendaction.h:27
ReflectiveRapidJSON::FrontendAction::hasCodeCompletionSupport
bool hasCodeCompletionSupport() const override
Definition
frontendaction.cpp:11
ReflectiveRapidJSON
Definition
codegenerator.h:15
Generated on
for Reflection for RapidJSON by
1.18.0