Class: AdLint::Cc1::ExplicitFunction

Inherits:
NamedFunction show all
Defined in:
lib/adlint/cc1/object.rb

Instance Attribute Summary

Attributes included from Nameable

#name

Attributes inherited from TypedObject

#type

Attributes inherited from Object

#declarations_and_definitions

Attributes included from Bindable

#binding

Instance Method Summary collapse

Methods inherited from NamedFunction

#call, #designated_by_lvalue?, #signature

Methods included from Nameable

#named?

Methods inherited from Function

#call, #function?, #implicit?, #name, #named?, #signature, #temporary?, #variable?

Methods inherited from TypedObject

#to_pointer, #to_pointer_value, #to_value, #to_variable

Methods inherited from Object

#declared_as_auto?, #declared_as_extern?, #declared_as_register?, #declared_as_static?, #designated_by_lvalue?, #function?, #named?, #storage_class_specifiers, #temporary?, #variable?

Methods included from Bindable

#be_alias_to, #bind_to

Constructor Details

#initialize(dcl_or_def) ⇒ ExplicitFunction

Returns a new instance of ExplicitFunction.



1043
1044
1045
# File 'lib/adlint/cc1/object.rb', line 1043

def initialize(dcl_or_def)
  super(dcl_or_def, dcl_or_def.type, dcl_or_def.identifier.value)
end

Instance Method Details

#builtin?Boolean

Returns:

  • (Boolean)


1051
1052
1053
# File 'lib/adlint/cc1/object.rb', line 1051

def builtin?
  false
end

#explicit?Boolean

Returns:

  • (Boolean)


1047
1048
1049
# File 'lib/adlint/cc1/object.rb', line 1047

def explicit?
  true
end