Class: AdLint::Cc1::IterationStatement

Inherits:
Statement show all
Includes:
SyntaxNodeCollector
Defined in:
lib/adlint/cc1/syntax.rb

Instance Attribute Summary

Attributes inherited from Statement

#executed

Attributes inherited from SyntaxNode

#head_token, #subsequent_sequence_point, #tail_token

Instance Method Summary collapse

Methods included from SyntaxNodeCollector

collect_additive_expressions, collect_array_declarators, collect_compound_assignment_expressions, collect_constant_specifiers, collect_equality_expressions, collect_function_declarators, collect_generic_labeled_statements, collect_goto_statements, collect_identifier_declarators, collect_if_else_statements, collect_if_statements, collect_logical_and_expressions, collect_logical_or_expressions, collect_object_specifiers, collect_postfix_decrement_expressions, collect_postfix_increment_expressions, collect_prefix_decrement_expressions, collect_prefix_increment_expressions, collect_relational_expressions, collect_simple_assignment_expressions, collect_typedef_type_specifiers

Methods inherited from Statement

#executed?, #initialize

Methods inherited from SyntaxNode

#head_location, #initialize, #inspect, #location, #short_class_name, #tail_location

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

This class inherits a constructor from AdLint::Cc1::Statement

Instance Method Details

#deduct_controlling_expressionObject



3624
3625
3626
# File 'lib/adlint/cc1/syntax.rb', line 3624

def deduct_controlling_expression
  subclass_responsibility
end

#varying_expressionsObject



3632
3633
3634
3635
# File 'lib/adlint/cc1/syntax.rb', line 3632

def varying_expressions
  collect_varying_binary_expressions(self) +
    collect_varying_unary_expressions(self)
end

#varying_variable_namesObject



3628
3629
3630
# File 'lib/adlint/cc1/syntax.rb', line 3628

def varying_variable_names
  collect_varying_variable_names(self).uniq
end