Class: Rubycc::Front::Parser::Alignas

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/parser.rb

Overview

The alignment an _Alignas specifier run asks for (6.7.5): alignment is the strongest boundary requested — a declaration may carry several alignment-specifiers and the largest wins (measured: gcc gives "_Alignas(8) _Alignas(16) int a" a 16-byte boundary whichever order the two are written in) — and token is the "_Alignas" that asked for it, so a diagnostic about the request can be located.

Instance Attribute Summary collapse

Instance Attribute Details

#alignmentObject (readonly)

Returns the value of attribute alignment

Returns:

  • (Object)

    the current value of alignment



345
346
347
# File 'lib/rubycc/front/parser.rb', line 345

def alignment
  @alignment
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



345
346
347
# File 'lib/rubycc/front/parser.rb', line 345

def token
  @token
end