v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Functions | Variables
helper_functions.cpp File Reference
#include "helper_functions.h"
#include <iostream>
#include <fstream>
#include <fmt/ostream.h>
#include <clang/AST/CXXInheritance.h>
#include "wrapped_class.h"
Include dependency graph for helper_functions.cpp:

Go to the source code of this file.

Functions

string make_macro_safe_comma (string const &input)
 
void update_wrapped_class_for_type (WrappedClass &wrapped_class, QualType qual_type)
 
EXPORT_TYPE get_export_type (const NamedDecl *decl, EXPORT_TYPE previous)
 
std::string get_canonical_name_for_decl (const TypeDecl *decl)
 
void data_error (const string &error)
 
void data_warning (const string &warning)
 
QualType get_plain_type (QualType qual_type)
 
void generate_bindings ()
 
void generate_javascript_stub (std::string const &filename)
 
void generate_bidirectional_classes (CompilerInstance &compiler_instance)
 

Variables

vector< string > data_errors
 
vector< string > data_warnings
 

Function Documentation

string make_macro_safe_comma ( string const &  input)

Definition at line 14 of file helper_functions.cpp.

Referenced by generate_bidirectional_classes().

Here is the caller graph for this function:

void update_wrapped_class_for_type ( WrappedClass wrapped_class,
QualType  qual_type 
)
EXPORT_TYPE get_export_type ( const NamedDecl *  decl,
EXPORT_TYPE  previous 
)
std::string get_canonical_name_for_decl ( const TypeDecl *  decl)
void data_error ( const string &  error)
void data_warning ( const string &  warning)

Definition at line 208 of file helper_functions.cpp.

Referenced by ClassFunction::ClassFunction(), and ClassFunction::ParameterInfo::ParameterInfo().

Here is the caller graph for this function:

QualType get_plain_type ( QualType  qual_type)

Definition at line 213 of file helper_functions.cpp.

void generate_bindings ( )

Definition at line 223 of file helper_functions.cpp.

References matched_classes_returned, MAX_DECLARATIONS_PER_FILE, WrappedClass::wrapped_classes, and write_classes().

Referenced by ClassHandler::onEndOfTranslationUnit().

Here is the call graph for this function:

Here is the caller graph for this function:

void generate_javascript_stub ( std::string const &  filename)

Definition at line 343 of file helper_functions.cpp.

References js_api_header, and WrappedClass::wrapped_classes.

Referenced by ClassHandler::onEndOfTranslationUnit().

Here is the caller graph for this function:

void generate_bidirectional_classes ( CompilerInstance &  compiler_instance)

Variable Documentation

vector<string> data_errors

Definition at line 201 of file helper_functions.cpp.

Referenced by ClassHandler::onEndOfTranslationUnit().

vector<string> data_warnings

Definition at line 207 of file helper_functions.cpp.

Referenced by ClassHandler::onEndOfTranslationUnit().