Class: AdLint::Cc1::AlignofExpression
Instance Attribute Summary
#operand, #operator
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary
collapse
#initialize, #inspect, #location
Methods inherited from Expression
#constant?, #full=, #initialize, #object_specifiers
Methods inherited from SyntaxNode
#head_location, #initialize, #inspect, #location, #short_class_name, #tail_location
#analysis_target?
Methods included from Visitable
#accept
Instance Method Details
#arithmetic? ⇒ Boolean
1574
1575
1576
|
# File 'lib/adlint/cc1/syntax.rb', line 1574
def arithmetic?
false
end
|
#bitwise? ⇒ Boolean
1578
1579
1580
|
# File 'lib/adlint/cc1/syntax.rb', line 1578
def bitwise?
false
end
|
#have_side_effect? ⇒ Boolean
1566
1567
1568
|
# File 'lib/adlint/cc1/syntax.rb', line 1566
def have_side_effect?
false
end
|
#logical? ⇒ Boolean
1570
1571
1572
|
# File 'lib/adlint/cc1/syntax.rb', line 1570
def logical?
false
end
|
#to_complemental_logical ⇒ Object
1591
1592
1593
|
# File 'lib/adlint/cc1/syntax.rb', line 1591
def to_complemental_logical
self
end
|
#to_normalized_logical(parent_expr = nil) ⇒ Object
1582
1583
1584
1585
1586
1587
1588
1589
|
# File 'lib/adlint/cc1/syntax.rb', line 1582
def to_normalized_logical(parent_expr = nil)
case parent_expr
when nil, LogicalAndExpression, LogicalOrExpression
create_normalized_logical_of(self)
else
self
end
end
|
1595
1596
1597
|
# File 'lib/adlint/cc1/syntax.rb', line 1595
def to_s
"alignof(#{@operand.to_s})"
end
|