Polly 20.0.0git
Functions
plain_cpp.cc File Reference
#include <cstdarg>
#include <cstdio>
#include <iostream>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include "plain_cpp.h"
#include "isl_config.h"

Go to the source code of this file.

Functions

static void osprintf (ostream &os, const char *format, va_list arguments)
 
static void osprintf (ostream &os, const char *format,...)
 
static void osprintf (ostream &os, int indent, const char *format,...)
 
static std::string to_string (long l)
 
static string add_space_to_return_type (const string &type)
 
static void print_throw_last_error (ostream &os)
 
static void print_throw_invalid (ostream &os, int indent, const char *msg)
 
static void print_throw_NULL_input (ostream &os)
 
static void print_persistent_callback_exceptional_execution_check (ostream &os, const Method &method)
 
static void on_cplusplus17 (ostream &os, const std::function< void(void)> &fn)
 

Function Documentation

◆ add_space_to_return_type()

static string add_space_to_return_type ( const string &  type)
static

◆ on_cplusplus17()

static void on_cplusplus17 ( ostream &  os,
const std::function< void(void)> &  fn 
)
static

Definition at line 1845 of file plain_cpp.cc.

References fn.

Referenced by plain_cpp_generator::plain_printer::print_special_id().

◆ osprintf() [1/3]

static void osprintf ( ostream &  os,
const char *  format,
va_list  arguments 
)
static

Definition at line 51 of file plain_cpp.cc.

References size.

Referenced by plain_cpp_generator::generate(), osprintf(), plain_cpp_generator::impl_printer::print_argument_validity_check(), plain_cpp_generator::impl_printer::print_callback_body(), plain_cpp_generator::plain_printer::print_callback_data_decl(), plain_cpp_generator::impl_printer::print_callback_local(), plain_cpp_generator::print_check_no_persistent_callback(), plain_cpp_generator::impl_printer::print_check_ptr(), plain_cpp_generator::impl_printer::print_check_ptr_end(), plain_cpp_generator::print_class(), plain_cpp_generator::impl_printer::print_class_factory(), plain_cpp_generator::decl_printer::print_class_factory(), plain_cpp_generator::print_class_forward_decl(), plain_cpp_generator::print_class_impl(), plain_cpp_generator::decl_printer::print_copy_assignment(), plain_cpp_generator::impl_printer::print_copy_assignment(), plain_cpp_generator::decl_printer::print_ctx(), plain_cpp_generator::impl_printer::print_ctx(), plain_cpp_generator::print_declarations(), plain_cpp_generator::decl_printer::print_destructor(), plain_cpp_generator::impl_printer::print_destructor(), plain_cpp_generator::decl_printer::print_downcast(), plain_cpp_generator::impl_printer::print_downcast(), plain_cpp_generator::impl_printer::print_exceptional_execution_check(), plain_cpp_generator::print_forward_declarations(), plain_cpp_generator::plain_printer::print_full_method_header(), plain_cpp_generator::impl_printer::print_get_method(), plain_cpp_generator::print_implementations(), plain_cpp_generator::print_invalid(), plain_cpp_generator::decl_printer::print_isa_type_template(), plain_cpp_generator::impl_printer::print_method(), plain_cpp_generator::impl_printer::print_method_return(), plain_cpp_generator::impl_printer::print_on_error_continue(), plain_cpp_generator::decl_printer::print_persistent_callback_data(), print_persistent_callback_exceptional_execution_check(), plain_cpp_generator::plain_printer::print_persistent_callback_prototype(), plain_cpp_generator::plain_printer::print_persistent_callback_setter_prototype(), plain_cpp_generator::decl_printer::print_persistent_callbacks(), plain_cpp_generator::impl_printer::print_persistent_callbacks(), plain_cpp_generator::decl_printer::print_protected_constructors(), plain_cpp_generator::impl_printer::print_protected_constructors(), plain_cpp_generator::decl_printer::print_ptr(), plain_cpp_generator::impl_printer::print_ptr(), plain_cpp_generator::decl_printer::print_public_constructors(), plain_cpp_generator::impl_printer::print_public_constructors(), plain_cpp_generator::impl_printer::print_set_persistent_callback(), plain_cpp_generator::impl_printer::print_stream_insertion(), plain_cpp_generator::decl_printer::print_subclass_type(), print_throw_invalid(), print_throw_last_error(), plain_cpp_generator::impl_printer::print_wrapped_call(), and plain_cpp_generator::impl_printer::print_wrapped_call_checked().

◆ osprintf() [2/3]

static void osprintf ( ostream &  os,
const char *  format,
  ... 
)
static

Definition at line 71 of file plain_cpp.cc.

References osprintf().

◆ osprintf() [3/3]

static void osprintf ( ostream &  os,
int  indent,
const char *  format,
  ... 
)
static

Definition at line 86 of file plain_cpp.cc.

References osprintf().

◆ print_persistent_callback_exceptional_execution_check()

static void print_persistent_callback_exceptional_execution_check ( ostream &  os,
const Method method 
)
static

◆ print_throw_invalid()

static void print_throw_invalid ( ostream &  os,
int  indent,
const char *  msg 
)
static

Definition at line 683 of file plain_cpp.cc.

References osprintf().

Referenced by plain_cpp_generator::print_invalid(), and print_throw_NULL_input().

◆ print_throw_last_error()

static void print_throw_last_error ( ostream &  os)
static

◆ print_throw_NULL_input()

static void print_throw_NULL_input ( ostream &  os)
static

◆ to_string()

static std::string to_string ( long  l)
static