Class: Rubycc::Front::Parser::DeclSpecInfo
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::Parser::DeclSpecInfo
- Defined in:
- lib/rubycc/front/parser.rb
Overview
The non-type parts of a declaration's specifier run, collected by
#parse_declaration_specifiers alongside the base type. storage is the
recorded storage class (nil, :typedef, :static or :extern); const is
whether the declaration is const-qualified (const seen among the
specifiers, or folded in from a const typedef name); inline_p and
noreturn_p are whether "inline" or "_Noreturn" appeared (the two
function specifiers, 6.7.4, accepted on functions and rejected on
objects). attributes holds the GNU attributes written among the
specifiers (position a), which apply to every declarator of the
declaration; only the init attributes are read back from it, and only
where they are admitted at all (see #parse_declaration_specifiers).
alignas is the strongest _Alignas the run asked for (an Alignas, or nil
when none appeared). volatile and register/auto leave no trace here.
Instance Attribute Summary collapse
-
#alignas ⇒ Object
readonly
Returns the value of attribute alignas.
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#const ⇒ Object
readonly
Returns the value of attribute const.
-
#inline_p ⇒ Object
readonly
Returns the value of attribute inline_p.
-
#noreturn_p ⇒ Object
readonly
Returns the value of attribute noreturn_p.
-
#storage ⇒ Object
readonly
Returns the value of attribute storage.
Instance Attribute Details
#alignas ⇒ Object (readonly)
Returns the value of attribute alignas
331 332 333 |
# File 'lib/rubycc/front/parser.rb', line 331 def alignas @alignas end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
331 332 333 |
# File 'lib/rubycc/front/parser.rb', line 331 def attributes @attributes end |
#const ⇒ Object (readonly)
Returns the value of attribute const
331 332 333 |
# File 'lib/rubycc/front/parser.rb', line 331 def const @const end |
#inline_p ⇒ Object (readonly)
Returns the value of attribute inline_p
331 332 333 |
# File 'lib/rubycc/front/parser.rb', line 331 def inline_p @inline_p end |
#noreturn_p ⇒ Object (readonly)
Returns the value of attribute noreturn_p
331 332 333 |
# File 'lib/rubycc/front/parser.rb', line 331 def noreturn_p @noreturn_p end |
#storage ⇒ Object (readonly)
Returns the value of attribute storage
331 332 333 |
# File 'lib/rubycc/front/parser.rb', line 331 def storage @storage end |