|
Reflection for RapidJSON 0.0.17
Reflection for serializing/deserializing with RapidJSON
|
The Consumer class is passed to FrontendAction for handling occurrences of different elements of the file. More...
#include <consumer.h>
Public Member Functions | |
| Consumer (CodeFactory &factory, clang::CompilerInstance &compilerInstance) | |
| bool | HandleTopLevelDecl (clang::DeclGroupRef groupRefDecl) override |
| void | HandleTranslationUnit (clang::ASTContext &context) override |
| bool | shouldParseDecl (clang::Decl *declaration) |
The Consumer class is passed to FrontendAction for handling occurrences of different elements of the file.
These elements consist of top-level declarations, namespace definitions and most importantly the whole translation unit. If the translations unit has occurred, that means nested elements (eg. classes) have been read completely. In this case, the Consumer class will trigger traversing the translation unit using a Visitor instance.
Definition at line 24 of file consumer.h.
|
inline |
Definition at line 41 of file consumer.h.
|
override |
Definition at line 21 of file consumer.cpp.
|
override |
Definition at line 33 of file consumer.cpp.
| bool ReflectiveRapidJSON::Consumer::shouldParseDecl | ( | clang::Decl * | declaration | ) |
Definition at line 15 of file consumer.cpp.