class AdLint::Cc1::Declarator
Attributes
pointer[RW]
Public Class Methods
new()
click to toggle source
Calls superclass method
AdLint::Cc1::SyntaxNode::new
# File lib/adlint/cc1/syntax.rb, line 3069 def initialize super @pointer = nil @full = false end
Public Instance Methods
abstract?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3081 def abstract? false end
base()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3112 def base subclass_responsibility end
full=(dcr_is_full)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3085 def full=(dcr_is_full) @full = dcr_is_full # NOTE: The ISO C99 standard says; # # 6.7.5 Declarators # # Semantics # # 3 A full declarator is a declarator that is not part of another # declarator. The end of a full declarator is a sequence point. If, # in the nested sequence of declarators in a full declarator, there is # a declarator specifying a variable length array type, the type # specified by the full declarator is said to be variably modified. # Furthermore, any type derived by declarator type derivation from a # variably modified type is itself variably modified. if dcr_is_full append_sequence_point! else delete_sequence_point! end end
full?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3108 def full? @full end
function?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3116 def function? subclass_responsibility end
identifier()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3077 def identifier subclass_responsibility end
identifier_list()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3132 def identifier_list subclass_responsibility end
innermost_parameter_type_list()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3128 def innermost_parameter_type_list subclass_responsibility end
parameter_type_list()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3124 def parameter_type_list subclass_responsibility end
variable?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3120 def variable? !function? end