GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "pt-check.h"
Private Member Functions | |
tree_checker (const tree_checker &) | |
void | do_decl_command (tree_decl_command &) |
void | gripe (const std::string &msg, int line) |
tree_checker & | operator= (const tree_checker &) |
Private Attributes | |
bool | do_lvalue_check |
std::string | file_name |
Definition at line 32 of file pt-check.h.
|
inline |
Definition at line 37 of file pt-check.h.
|
inline |
Definition at line 40 of file pt-check.h.
|
private |
|
private |
Definition at line 93 of file pt-check.cc.
References tree_decl_init_list::accept(), and tree_decl_command::initializer_list().
Referenced by visit_global_command(), and visit_persistent_command().
|
private |
Definition at line 568 of file pt-check.cc.
References error(), and file_name.
Referenced by visit_argument_list(), visit_complex_for_command(), visit_simple_assignment(), visit_simple_for_command(), and visit_try_catch_command().
|
private |
|
virtual |
Implements tree_walker.
Definition at line 345 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 33 of file pt-check.cc.
References octave_base_list< elt_type >::begin(), do_lvalue_check, octave_base_list< elt_type >::end(), gripe(), tree::line(), and tree_expression::lvalue_ok().
|
virtual |
Implements tree_walker.
Definition at line 50 of file pt-check.cc.
References tree::accept(), tree_binary_expression::lhs(), and tree_binary_expression::rhs().
|
virtual |
Implements tree_walker.
Definition at line 64 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 306 of file pt-check.cc.
References tree_argument_list::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
inlinevirtualinherited |
Definition at line 267 of file pt-walk.h.
Referenced by tree_classdef::accept().
|
inlinevirtualinherited |
Definition at line 219 of file pt-walk.h.
Referenced by tree_classdef_attribute::accept().
|
inlinevirtualinherited |
Definition at line 222 of file pt-walk.h.
Referenced by tree_classdef_attribute_list::accept().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Definition at line 255 of file pt-walk.h.
Referenced by tree_classdef_enum::accept().
|
inlinevirtualinherited |
Definition at line 261 of file pt-walk.h.
Referenced by tree_classdef_enum_block::accept().
|
inlinevirtualinherited |
Definition at line 258 of file pt-walk.h.
Referenced by tree_classdef_enum_list::accept().
|
inlinevirtualinherited |
Definition at line 246 of file pt-walk.h.
Referenced by tree_classdef_event::accept().
|
inlinevirtualinherited |
Definition at line 252 of file pt-walk.h.
Referenced by tree_classdef_events_block::accept().
|
inlinevirtualinherited |
Definition at line 249 of file pt-walk.h.
Referenced by tree_classdef_events_list::accept().
|
inlinevirtualinherited |
Definition at line 243 of file pt-walk.h.
Referenced by tree_classdef_methods_block::accept().
|
inlinevirtualinherited |
Definition at line 240 of file pt-walk.h.
Referenced by tree_classdef_methods_list::accept().
|
inlinevirtualinherited |
Definition at line 237 of file pt-walk.h.
Referenced by tree_classdef_properties_block::accept().
|
inlinevirtualinherited |
Definition at line 231 of file pt-walk.h.
Referenced by tree_classdef_property::accept().
|
inlinevirtualinherited |
Definition at line 234 of file pt-walk.h.
Referenced by tree_classdef_property_list::accept().
|
inlinevirtualinherited |
Definition at line 225 of file pt-walk.h.
Referenced by tree_classdef_superclass::accept().
|
inlinevirtualinherited |
Definition at line 228 of file pt-walk.h.
Referenced by tree_classdef_superclass_list::accept().
|
virtual |
Implements tree_walker.
Definition at line 69 of file pt-check.cc.
References tree::accept(), tree_colon_expression::base(), tree_colon_expression::increment(), and tree_colon_expression::limit().
|
virtual |
Implements tree_walker.
Definition at line 169 of file pt-check.cc.
References tree::accept(), tree_argument_list::accept(), tree_statement_list::accept(), tree_complex_for_command::body(), tree_complex_for_command::control_expr(), do_lvalue_check, gripe(), tree_complex_for_command::left_hand_side(), octave_base_list< elt_type >::length(), and tree::line().
|
virtual |
Implements tree_walker.
Definition at line 350 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 88 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 114 of file pt-check.cc.
References tree::accept(), tree_identifier::accept(), tree_decl_elt::expression(), and tree_decl_elt::ident().
|
virtual |
Implements tree_walker.
Definition at line 128 of file pt-check.cc.
References tree_decl_elt::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 554 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_while_command::body(), and tree_while_command::condition().
|
virtual |
Implements tree_walker.
Definition at line 355 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 360 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 218 of file pt-check.cc.
References octave_function::accept(), f, tree_function_def::function(), and octave_value::function_value().
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 229 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 234 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_if_clause::commands(), and tree_if_clause::condition().
|
virtual |
Implements tree_walker.
Definition at line 248 of file pt-check.cc.
References tree_if_command_list::accept(), and tree_if_command::cmd_list().
|
virtual |
Implements tree_walker.
Definition at line 257 of file pt-check.cc.
References tree_if_clause::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 271 of file pt-check.cc.
References tree::accept(), tree_argument_list::accept(), tree_index_expression::arg_lists(), and tree_index_expression::expression().
|
virtual |
Implements tree_walker.
Definition at line 292 of file pt-check.cc.
References tree_argument_list::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 320 of file pt-check.cc.
References tree::accept(), tree_argument_list::accept(), do_lvalue_check, tree_multi_assignment::left_hand_side(), and tree_multi_assignment::right_hand_side().
|
virtual |
Implements tree_walker.
Definition at line 340 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 209 of file pt-check.cc.
References tree_statement_list::accept(), and octave_user_function::body().
|
virtual |
Implements tree_walker.
Definition at line 200 of file pt-check.cc.
References tree_statement_list::accept(), and octave_user_script::body().
|
virtual |
Implements tree_walker.
Definition at line 365 of file pt-check.cc.
References tree_decl_elt::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 379 of file pt-check.cc.
References tree::accept(), and tree_unary_expression::operand().
|
virtual |
Implements tree_walker.
Definition at line 388 of file pt-check.cc.
References tree::accept(), and tree_unary_expression::operand().
|
virtual |
Implements tree_walker.
Definition at line 397 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 402 of file pt-check.cc.
References tree_index_expression::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 416 of file pt-check.cc.
References tree::accept(), gripe(), tree_simple_assignment::left_hand_side(), tree::line(), tree_expression::lvalue_ok(), and tree_simple_assignment::right_hand_side().
|
virtual |
Implements tree_walker.
Definition at line 142 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_simple_for_command::body(), tree_simple_for_command::control_expr(), gripe(), tree_simple_for_command::left_hand_side(), tree::line(), tree_expression::lvalue_ok(), and tree_simple_for_command::maxproc_expr().
|
virtual |
Implements tree_walker.
Definition at line 433 of file pt-check.cc.
References tree::accept(), tree_statement::command(), and tree_statement::expression().
|
virtual |
Implements tree_walker.
Definition at line 449 of file pt-check.cc.
References tree_statement::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 461 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_switch_case::case_label(), and tree_switch_case::commands().
|
virtual |
Implements tree_walker.
Definition at line 475 of file pt-check.cc.
References tree_switch_case::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 489 of file pt-check.cc.
References tree::accept(), tree_switch_case_list::accept(), tree_switch_command::case_list(), and tree_switch_command::switch_value().
|
virtual |
Implements tree_walker.
Definition at line 503 of file pt-check.cc.
References tree_statement_list::accept(), tree_try_catch_command::body(), tree_try_catch_command::cleanup(), gripe(), tree_try_catch_command::identifier(), tree::line(), and tree_identifier::lvalue_ok().
|
virtual |
Implements tree_walker.
Definition at line 526 of file pt-check.cc.
References tree_statement_list::accept(), tree_unwind_protect_command::body(), and tree_unwind_protect_command::cleanup().
|
virtual |
Implements tree_walker.
Definition at line 540 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_while_command::body(), and tree_while_command::condition().
|
private |
Definition at line 128 of file pt-check.h.
Referenced by visit_argument_list(), visit_complex_for_command(), and visit_multi_assignment().
|
private |
Definition at line 130 of file pt-check.h.
Referenced by gripe().