Polly 20.0.0git
Functions | Variables
cpp.cc File Reference
#include <iostream>
#include <string>
#include <vector>
#include "cpp.h"
#include "isl_config.h"

Go to the source code of this file.

Functions

static void copy_method (isl_class &clazz, const isl_class &super, const std::string &name, FunctionDecl *fd, int depth)
 
static bool same_signature (FunctionDecl *fd1, FunctionDecl *fd2)
 
static int copy_depth (const isl_class &clazz, FunctionDecl *fd)
 
static bool is_overridden (FunctionDecl *fd, isl_class &clazz, const std::string &name, int depth)
 
static bool has_single_isl_argument (FunctionDecl *fd)
 
static FunctionDecl * single_local (const isl_class &clazz, const function_set &methods)
 
static std::string rename_method (std::string name)
 
static Method::Kind get_kind (const isl_class &clazz, FunctionDecl *method)
 
static std::vector< ParmVarDecl * > find_callback_args (FunctionDecl *fd)
 

Variables

static const char * rename_map [][2]
 

Function Documentation

◆ copy_depth()

static int copy_depth ( const isl_class clazz,
FunctionDecl *  fd 
)
static

Definition at line 137 of file cpp.cc.

References isl_class::copy_depth.

Referenced by cpp_generator::copy_methods(), and is_overridden().

◆ copy_method()

static void copy_method ( isl_class clazz,
const isl_class super,
const std::string &  name,
FunctionDecl *  fd,
int  depth 
)
static

Definition at line 101 of file cpp.cc.

References isl_class::copied_from, isl_class::copy_depth, isl_class::methods, and name.

Referenced by cpp_generator::copy_methods().

◆ find_callback_args()

static std::vector< ParmVarDecl * > find_callback_args ( FunctionDecl *  fd)
static

Definition at line 965 of file cpp.cc.

References generator::is_callback().

◆ get_kind()

static Method::Kind get_kind ( const isl_class clazz,
FunctionDecl *  method 
)
static

◆ has_single_isl_argument()

static bool has_single_isl_argument ( FunctionDecl *  fd)
static

Definition at line 403 of file cpp.cc.

References generator::is_isl_type().

Referenced by cpp_generator::class_printer::print_method_group().

◆ is_overridden()

static bool is_overridden ( FunctionDecl *  fd,
isl_class clazz,
const std::string &  name,
int  depth 
)
static

Definition at line 159 of file cpp.cc.

References copy_depth(), m, isl_class::methods, name, and same_signature().

Referenced by cpp_generator::copy_methods().

◆ rename_method()

static std::string rename_method ( std::string  name)
static

Definition at line 754 of file cpp.cc.

References name, and rename_map.

◆ same_signature()

static bool same_signature ( FunctionDecl *  fd1,
FunctionDecl *  fd2 
)
static

Definition at line 113 of file cpp.cc.

Referenced by is_overridden().

◆ single_local()

static FunctionDecl * single_local ( const isl_class clazz,
const function_set methods 
)
static

Variable Documentation

◆ rename_map

const char* rename_map[][2]
static
Initial value:
= {
{ "union", "unite" },
}

Definition at line 746 of file cpp.cc.

Referenced by rename_method().