Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

except.cc File Reference

#include "except.h"
#include "except_i.h"

Include dependency graph for except.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define printBacktrace(x)

Functions

Ptreefind_leaf (Ptree *tree, char **fn_out, int *fn_length_out, unsigned int *line_out)
void print_location (std::ostream &os, Ptree *tree)
void compile_error (const char *str)
void compile_error (std::string str)
void bogus_ptree_error (const char *str, Ptree *tree)
void bogus_ptree_error (std::string str, Ptree *tree)
void expect_ptree (Ptree *p, const char *str)
void expect_ptree (Ptree *p, char c)
void compile_warning (const char *str, Ptree *tree)
void compile_warning (std::string str, Ptree *tree)


Define Documentation

#define printBacktrace  
 

Definition at line 20 of file except.cc.

Referenced by bogus_ptree_error().


Function Documentation

void bogus_ptree_error std::string    str,
Ptree   tree
 

Definition at line 54 of file except.cc.

References Ptree::Display2(), and printBacktrace.

Referenced by bogus_ptree_error(), Paranoid_visitor< T >::default_action(), expect_ptree(), Symbol_name::init_name(), parse_class(), Declaration_reader::parse_declarator_get_name(), Declaration_reader::parse_declarator_internal(), Expr_annotator::process_binary_operator(), Init_handler::process_initializer(), Expr_annotator::process_unary_operator(), Expr_annotator::visit_assign(), Expr_annotator::visit_leaf(), Expr_annotator::visit_pm(), Expr_annotator::visit_postfix(), Expr_annotator::visit_sizeof(), Annotator::visit_type_declaration(), Template_visitor::visit_type_declaration(), and Annotator::visit_using().

void bogus_ptree_error const char *    str,
Ptree   tree
 

Definition at line 46 of file except.cc.

References bogus_ptree_error().

void compile_error std::string    str
 

Definition at line 38 of file except.cc.

Referenced by Template_thing::add_args_from_ptree(), Class_symbol::add_base_class(), Function_declaration_reader::add_ellipsis(), Block_scope::add_function_decl(), Class_scope::add_function_decl(), Namespace_scope::add_function_decl(), Block_scope::add_function_implementation(), Function_symbol::add_signature(), Symbol_table::add_symbol(), Block_scope::add_variable(), Class_scope::add_variable(), Namespace_scope::add_variable(), check_ptr_arith(), convert_decl_to_expr(), Expr_result::convert_to_bool(), Expr_result::convert_to_fpointer(), Expr_result::convert_to_pointer(), Expr_result::convert_to_rvalue(), Template_visitor::declare_class(), Template_visitor::declare_name(), Simple_declaration_reader::declare_variable(), Typedef_declaration_reader::declare_variable(), Function_declaration_reader::declare_variable(), Expr_annotator::do_ccast(), Expr_annotator::do_const_cast(), Expr_annotator::do_dynamic_cast(), Expr_annotator::do_funcall(), Expr_annotator::do_reinterpret_cast(), Expr_annotator::do_static_cast(), Type::eat_type(), enumerate_conversion_ops(), Overload_candidate::fill_in_tree(), Expr_annotator::get_cast_expr(), Expr_annotator::get_cast_type(), get_composite_mptr_type(), get_composite_pointer_type(), Init_handler::get_default_initializer_for_type(), get_merged_cv_type(), Class_name_lookup_helper::get_result(), Template_class_symbol::get_specialisation(), Symbol_name::init_name(), Symbol_name::lookup_for_use(), Symbol_name::lookup_symbol_in_scope(), Init_handler::make_constructor_call(), make_sizeof_expr(), Implicit_conversion::make_tree(), Class_symbol::maybe_add_vbc(), Function_signature::merge_fspec(), parse_class(), Declaration_reader::parse_declarator_internal(), parse_enum(), parse_qualifier(), parse_specifier(), parse_specifiers(), parse_template_arg_list(), process_base_classes(), Expr_annotator::process_binary_operator(), Init_handler::process_brace(), Init_handler::process_initializer(), process_initializers(), Expr_annotator::process_member_access(), Expr_annotator::process_pm_expr(), Expr_annotator::process_unary_operator(), Enum_symbol::process_value(), Program_from_fd::Program_from_fd(), Type_reader::read_type(), Symbol_name::Symbol_name(), Type_reader::Type_reader(), Expr_annotator::visit_array(), Expr_annotator::visit_arrowmember(), Expr_annotator::visit_assign(), Expr_annotator::visit_brace(), Annotator::visit_case(), Expr_annotator::visit_cast(), Expr_annotator::visit_comma(), Expr_annotator::visit_cond(), Expr_annotator::visit_delete(), Annotator::visit_do(), Expr_annotator::visit_dotmember(), Annotator::visit_exprstatement(), Annotator::visit_for(), Expr_annotator::visit_funcall(), Template_visitor::visit_function(), Annotator::visit_if(), Expr_annotator::visit_infix(), Expr_annotator::visit_name(), Template_visitor::visit_name_declaration(), Annotator::visit_namespacespec(), Expr_annotator::visit_new(), Expr_annotator::visit_pm(), Expr_annotator::visit_postfix(), Annotator::visit_return(), Expr_annotator::visit_sizeof(), Annotator::visit_switch(), Expr_annotator::visit_this(), Expr_annotator::visit_throw(), Expr_annotator::visit_unary(), and Annotator::visit_while().

void compile_error const char *    str
 

Definition at line 30 of file except.cc.

void compile_warning std::string    str,
Ptree   tree
 

Definition at line 162 of file except.cc.

References print_location().

Referenced by Expr_annotator::do_funcall(), Init_handler::get_default_initializer_for_type(), Annotated_funcall_maker::make_funcall(), Implicit_conversion::make_tree(), Init_handler::process_array(), Expr_annotator::process_binary_operator(), Init_handler::process_brace(), process_initializers(), Expr_annotator::process_member_access(), Expr_annotator::visit_array(), Expr_annotator::visit_arrowmember(), Expr_annotator::visit_cast(), Annotator::visit_type_declaration(), and Template_visitor::visit_type_declaration().

void compile_warning const char *    str,
Ptree   tree
 

Definition at line 153 of file except.cc.

References print_location().

void expect_ptree Ptree   p,
char    c
 

Definition at line 79 of file except.cc.

References bogus_ptree_error(), and Ptree::Eq().

Referenced by Expr_annotator::add_parms_from_arglist(), convert_decl_to_expr(), Template_visitor::declare_name(), Expr_annotator::get_cast_type(), parse_class(), Declaration_reader::parse_declarator_list(), parse_enum(), parse_template_arg_list(), process_base_classes(), Init_handler::process_initializer(), process_initializers(), Enum_symbol::process_value(), Symbol_name::Symbol_name(), Expr_annotator::visit_array(), Expr_annotator::visit_arrowmember(), Annotator::visit_block(), Annotator::visit_brace(), Annotator::visit_break(), Annotator::visit_case(), Expr_annotator::visit_cast(), Expr_annotator::visit_comma(), Expr_annotator::visit_cond(), Annotator::visit_continue(), Annotator::visit_default(), Expr_annotator::visit_delete(), Annotator::visit_do(), Expr_annotator::visit_dotmember(), Annotator::visit_exprstatement(), Annotator::visit_for(), Expr_annotator::visit_fstylecastexpr(), Expr_annotator::visit_funcall(), Annotator::visit_goto(), Annotator::visit_if(), Annotator::visit_label(), Annotator::visit_linkagespec(), Annotator::visit_namespacespec(), Expr_annotator::visit_new(), Expr_annotator::visit_paren(), Annotator::visit_return(), Expr_annotator::visit_sizeof(), Annotator::visit_switch(), Annotator::visit_templatedecl(), Expr_annotator::visit_this(), Expr_annotator::visit_throw(), and Annotator::visit_while().

void expect_ptree Ptree   p,
const char *    str
 

Definition at line 70 of file except.cc.

References bogus_ptree_error(), and Ptree::Eq().

Ptree * find_leaf Ptree   tree,
char **    fn_out,
int *    fn_length_out,
unsigned int *    line_out
[static]
 

Definition at line 102 of file except.cc.

References Ptree::Car(), Ptree::Cdr(), Ptree::GetPosition(), Source::instance(), Ptree::IsLeaf(), Program::LineNumber(), and Source::program().

Referenced by print_location().

void print_location std::ostream &    os,
Ptree   tree
[static]
 

Definition at line 121 of file except.cc.

References find_leaf().

Referenced by compile_warning(), and Compile_error::print().


Generated on Mon Feb 10 17:33:36 2003 for VFiasco Semantics Compiler by doxygen1.2.15